-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
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
Broken PHPUnit tests #206
Comments
It seems that parsed empty functions (that have no uses) are the cause of this change. |
We should check if a function has uses here something like this $function = array_pop( $this->location );
if( isset( $function->uses ) && ! empty( $function->uses ) ) {
end( $this->functions )->uses = $function->uses;
} Because phpdocumentor/reflection 3 now uses nikic/php-parser 1 as a dependency we should also use the namespaced names as mentioned here |
Fixes errors for nikic/php-parser v1.2.0+ by checking the property. See issue WordPress#206
I'm also getting same error:
|
…ing PHP notices Props keesiemeijer. See #206.
Before commit e482b28 the PHPUnit tests used to work with PHPUnit 4. Now I get this error for half of the unit tests.
The text was updated successfully, but these errors were encountered: