zend-code icon indicating copy to clipboard operation
zend-code copied to clipboard

Results 31 zend-code issues
Sort by recently updated
recently updated
newest added

From zendframework/zendframework#6860 which was just closed: > It looks like FileReflection uses `token_get_all(file_get_contents($file))` to actually scan the file, so I am a little lost by the [requirement](https://github.com/zendframework/zf2/blob/3e6936d75c7fcb4220a9a547d78c6c217a746060/library/Zend/Code/Reflection/FileReflection.php#L88) of `include`ing it....

I had requested traits back in zendframework/zendframework#4876 which is now closed. It appears this support was added via TraitGenerator. Would be great to see some examples included in the docs.

This issue has been moved from the `zendframework` repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html --- Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/4149 User: @Ocramius Created On: 2013-03-30T11:59:09Z...

This issue has been moved from the `zendframework` repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html --- Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/7113 User: @nouc23 Created On: 2015-01-09T10:38:17Z...

This issue has been moved from the `zendframework` repository as part of the bug migration program as outlined here - http://framework.zend.com/blog/2016-04-11-issue-closures.html --- Original Issue: https://api.github.com/repos/zendframework/zendframework/issues/6503 User: @rahuldroy Created On: 2014-07-31T14:24:38Z...

As per PHP 7.1, it is possible to define nullability of a type by adding a `?` in front of it ( https://wiki.php.net/rfc/nullable_types ). A few heads-up: - careful about...

enhancement

I'm trying to set array for default value: ``` public function exportCategory($sourceId, $targetParentId, $params = [1, 2, 3]) ``` And getting notice: > Notice: Undefined index: type in /home/forever/prj/Enterum/vendor/zendframework/zend-code/src/Scanner/MethodScanner.php on...

Basically, parsing via regexes is simply not acceptable/viable anymore, and absolutely doesn't scale, as the syntax of PHP keeps changing. @asgrim has been building https://github.com/Roave/BetterReflection since last year, and the...

enhancement
question
BC Break

Related to #96, PropertyGenerator behaves incorrectly when the default value passed into it is a ValueGenerator instead of a PropertyValueGenerator. Example (lifted from #96): ``` php

bug

I'm getting `Notice: Undefined offset: 1 in /path/to/vendor/zendframework/zend-code/src/Scanner/ClassScanner.php on line 596` using 3.1.0. It looks like this happens with aliased trait methods: ```php trait A { function a() { //...