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

Extensions to the PHP Reflection API, static code scanning, and code generation

Results 36 laminas-code issues
Sort by recently updated
recently updated
newest added

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...

Enhancement

| Q | A |-------------- | ------ | Documentation | no | Bugfix | no | BC Break | no | New Feature | yes | RFC | no |...

Awaiting Maintainer Response
Enhancement

### Feature Request | Q | A |------------ | ------ | New Feature | yes #### Summary Due installing by composer i get next error while using PHP 8.2 RC:...

Enhancement

https://wiki.php.net/rfc/new_in_initializers

Enhancement

| Q | A |-------------- | ------ | Documentation | yes | Bugfix | no | BC Break | no | New Feature | no | RFC | no |...

Awaiting Author Updates
Documentation
Enhancement

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 =...

Bug

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. ``` /**...

Enhancement