We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laminas-code/src/Generator/TraitUsageGenerator.php
Line 259 in 17fd2af
Line 410 in 17fd2af
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' => 'TestTrait', 'method' => 'instance' ], 'InstanceAs');
Trigger an exception. The exception message is
PHP Fatal error: Uncaught Laminas\Code\Generator\Exception\InvalidArgumentException: Invalid Alias: Method name already exists on this class.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
laminas-code/src/Generator/TraitUsageGenerator.php
Line 259 in 17fd2af
laminas-code/src/Generator/TraitUsageGenerator.php
Line 410 in 17fd2af
Trigger an exception. The exception message is
The text was updated successfully, but these errors were encountered: