laminas-code
laminas-code copied to clipboard
Extensions to the PHP Reflection API, static code scanning, and code generation
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.[View this repository on the Mend.io Web Portal](https://developer.mend.io/github/laminas/laminas-code). ## Open The following updates have all...
### Feature Request | Q | A |------------ | ------ | New Feature | yes | RFC | no | BC Break | no #### Summary Please add support for...
| Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no | New Feature | yes | RFC | no |...
### Feature Request | Q | A |------------ | ------ | New Feature | yes #### Summary Due installing by composer i get next error while using PHP 8.2 RC:...
| Q | A |-------------- | ------ | Documentation | yes | Bugfix | no | BC Break | no | New Feature | no | RFC | no |...
https://github.com/laminas/laminas-code/blob/17fd2af36804f3f61788573cb70196454d6ee1d8/src/Generator/TraitUsageGenerator.php#L259 https://github.com/laminas/laminas-code/blob/17fd2af36804f3f61788573cb70196454d6ee1d8/src/Generator/TraitUsageGenerator.php#L410 ``` trait TestTrait { public function instance() { } } class Test { use TestTrait { instance as InstanceAs; } } $classGenerator = ClassGenerator::fromReflection(new ClassReflection(Test::class)); $classGenerator->addTrait(TestTrait::class); $classGenerator->addTraitAlias([ 'traitName'...
https://github.com/laminas/laminas-code/blob/17fd2af36804f3f61788573cb70196454d6ee1d8/src/Reflection/MethodReflection.php#L230 ``` class Test { public static function instance() { $instance = new static(); /** * @var static $instance */ return $instance; } } $reflectionClass = new \ReflectionClass(Test::class); $refectionMethod =...
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....
Referencing #30 and the issue with type-hinted parameters. Currently the method for setting Type Hints in the `ParameterGenerator` enforces an object by deriving the `TypeGenerator` from a string. ``` /**...