-
-
Notifications
You must be signed in to change notification settings - Fork 209
Support PHP 8 #238
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
Support PHP 8 #238
Conversation
tests/Functional/AnnotationsTest.php
Outdated
| use ReflectionFunction; | ||
|
|
||
| use function Functional\group; | ||
| use function get_defined_functions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we or do we not import the root namespaced functions? It looks like a mix at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a mess, yeah. Functional shows it's age here (I just realized when updating the copyright notice it’s 10 years anniversary). When it started, use function … was not a thing. But yes, it should be imported everywhere.
Edit: I misread the question.
To the actual question: no, we backslash-ref import them. php-cs-fixer does it consistently for us. Still want to add php-cs-fixer to CI.
Co-authored-by: Phan An <me@phanan.net>
Co-authored-by: Phan An <me@phanan.net>
Good point, done |
Support for PHP 8 based on @phanan’s PR #236
Todos:
AbstractTestCase::expectArgumentErrormethod to adapt to the new message format thrown in PHP 8 (actually, create a new method altogether).