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' );"
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' );"