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
strict_types declaration must be the very first statement in the script #4096
Comments
Which version of PHPUnit and PHP are you using? |
So, it seems the issue is that I'm trying to This is with PHP 7.4 |
The script is not meant to be included. |
If you need to run code before the first test and/or after the last test then you should write an extension that hooks into PHPUnit's test runner. |
I'll look into that. Thanks. |
[13-Feb-2020 17:56:55 UTC] PHP Fatal error: strict_types declaration must be the very first statement in the script in /srv/www/vendor/phpunit/phpunit/phpunit on line 2
The code style that's being used here, while not a bad style, isn't what the interpreter expects (it seems). Can this just be updated to conform instead of trying to go against the grain?
The text was updated successfully, but these errors were encountered: