You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% php ./test.php
fooPHP Fatal error: Uncaught exception 'TokenReflection\Exception\RuntimeException' with message 'Trait method "x" was already imported.' in /home/popsul/projects/traits/vendor/andrewsville/php-token-reflection/TokenReflection/ReflectionClass.php on line 734
Thrown when working with "T\TraitAggregate".
Stack trace:
#0 /home/popsul/projects/traits/vendor/andrewsville/php-token-reflection/TokenReflection/ReflectionClass.php(607): TokenReflection\ReflectionClass->getTraitMethods()
#1 /home/popsul/projects/traits/vendor/andrewsville/php-token-reflection/TokenReflection/ReflectionClass.php(701): TokenReflection\ReflectionClass->getMethods(NULL)
#2 /home/popsul/projects/traits/vendor/andrewsville/php-token-reflection/TokenReflection/ReflectionClass.php(607): TokenReflection\ReflectionClass->getTraitMethods()
#3 /home/popsul/projects/traits/test.php(14): TokenReflection\ReflectionClass->getMethods()
#4 {main}
thrown in /home/popsul/projects/traits/vendor/andrewsville/php-token-reflection/TokenReflection/ReflectionClass.php on line 734
The text was updated successfully, but these errors were encountered:
Example:
TraitA.php
TraitB.php
TraitAggregate.php
T.php
And
test.php
:Result:
The text was updated successfully, but these errors were encountered: