You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might be only an issue in the error message since I didn't find any issue with a valid eval'd code.
It's quite minor, but I did loose some time trying to understand it :)
PHP Fatal error: Declaration of MockRequest::duplicate(): Request must be compatible with Request::duplicate(): TestGenerator in var/test.php(20) : eval()'d code on line 2
But I expected this output instead:
PHP Fatal error: Declaration of MockRequest::duplicate(): Request must be compatible with Request::duplicate(): static in var/test.php(20) : eval()'d code on line 2
With a correct eval'd code (static return type), I do not have issues.
With a bad not-eval'd code, I do have a correct error message.
I can reproduce it with self and parent return types.
PHP Version
PHP 8.1.9
Operating System
No response
The text was updated successfully, but these errors were encountered:
Description
This might be only an issue in the error message since I didn't find any issue with a valid eval'd code.
It's quite minor, but I did loose some time trying to understand it :)
The following code:
Resulted in this output:
But I expected this output instead:
With a correct eval'd code (
static
return type), I do not have issues.With a bad not-eval'd code, I do have a correct error message.
I can reproduce it with
self
andparent
return types.PHP Version
PHP 8.1.9
Operating System
No response
The text was updated successfully, but these errors were encountered: