-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
phpunit 11 incompatibility with symfony WebTestCase #53731
Comments
Which PHP version is this? |
PHP 8.2.15 (cli) (built: Jan 19 2024 23:39:18) (NTS) |
edit: Nevermind, that shouldn't make a difference. 😞 |
@sebastianbergmann turning classes as readonly class is a BC break that will make it impossible to support 2 versions of PHPunit easily, as it will require conditional class declarations for all custom constraints. |
I thought, PHP 8.3 would allow non-readonly classes to extend readonly ones, but that proposal was rejected apparently: https://wiki.php.net/rfc/readonly_amendments |
Tried it with PHP 8.3.2 (cli) (built: Feb 1 2024 02:00:33) (NTS) |
As said, the RFC has been rejected, so this is not surprising. I reported the undocumented BC break to phpunit. Let's see how phpunit handles it. |
I handled it, thank you for bringing this to my attention. |
closing as fixed. Thank you @sebastianbergmann |
Symfony version(s) affected
6.4.*
Description
Just tried out the new phpunit 11 and got the followiong fatal error:
How to reproduce
Possible Solution
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: