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
Yeah, sounds like a problem related to the new PHP 8 syntax. It would be great to work around it IMO, do you want to give it a try? Even if that fixed in a newer version of PHP - it still would be a problem for legacy PHP versions, so a good workaround would be better.
Hi!
I have discovered an error in the following class:
while using constructor promoted properties instead a class var for
$message
.During debugging I found following behaviour:
The reflection class of
does not provide
message
as default properties so they are missing while dumpingsee:
If you declare
$message
the old school way as class var:the default properties of the reflection class does contains
message
as array key and there is no warning during extraction:A discussion about this behaviour as an potential php bug you can find here: https://bugs.php.net/bug.php?id=81386&edit=1
Not using constructor promoted properties as an PHP8 feature is not a solution for this issue.
The text was updated successfully, but these errors were encountered: