Andrewsville / PHP-Token-Reflection

Library emulating the PHP internal reflection using just the tokenized source code
http://andrewsville.github.com/PHP-Token-Reflection/
Other
190 stars 44 forks source link

TokenReflection\ReflectionMethod::getPrettyName returns incorrect values #44

Closed Nayjest closed 12 years ago

Nayjest commented 12 years ago

TokenReflection\ReflectionMethod::getPrettyName returns values like "1::myMethodName" Problem is in folowing code: null !== $this->declaringClassName ?: $this->declaringTraitName Class name is converted to boolean here. You may check this behavior easy: php -r "var_dump(null !== 'one' ?: 'two' );"

Nayjest commented 12 years ago

Oops, I see, it's already fixed, I have old code.