zend-code
zend-code copied to clipboard
Suppose I have two `MethodGenerator` instances - `$methodA` and `$methodB`. Does this library provide a way to check, whether methods, that might be generated by `$methodA` and `$methodB` will have...
The static function {{Zend\Code\Generator\MethodGenerator::clearBodyIndention}} fails on Windows 10, php 7.1. in line 83: $lines = explode(PHP_EOL, $body); $body does not contain any PHP_EOL (\n\r) characters, no matter what line ending...
In github library description we should have link to https://docs.zendframework.com/zend-code instead of github.io and it would be nice to have also some keywords with the library 😄
Hi guys I saw PSR2 issues when generating classes. See errors below > 92 | ERROR | [x] Expected 1 blank line at end of file; 2 found > 92...
When instantiating a Zend\Code\Generator\FileGenerator::fromReflection() one would expect ::generate to fully reconstruct any original file. Unfortunately Zend\Code\Reflection\FileReflection has no ::getBody method so any code outside classes is ignored.
When trying to do a FileReflection on a zend module.config.php you run into a ReflectionException when invoking FileReflection::getClasses(). Underlying problem is the tokens_get_all() function (in Zend\Code\Scanner\FileScanner::__construct) incorrectly flags the object::class...
For example: ``` /** * @param string $name * @return static */ public function setName($name) { $this->name = (string) $name; return $this; } ``` Instead `@return AbstractMemberGenerator`
When I use this method to grab the protype of a method of my class, it crashes with this error: > **"Call to a member function getTypes() on boolean"** It...
There is a discussion in the PR #123 about possible removing of low-level scanners in the `Zend\Code\Scanner` subnamespace for 4.0. Reason for that is to avoid keeping support for low-level...
Is it right behavior that TypeGenerator does not think self type is an internal type? Because of that my code generation causes wrong return type in resulting file. `public function...