-
Notifications
You must be signed in to change notification settings - Fork 438
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
Fix PHP 8.1 deprecation in ServiceException constructor #5245
Conversation
Actually wait... the parent class doesn't accept null code. Shouldn't the default value be 0?
|
Updated accordingly. It happens for example in Please merge this. |
@bshaffer Can you please merge this? It's causing a lot of deprecation errors for us. |
Hi @enumag I don't see how this error would be possible, as we aren't even using type hints for that argument. Are you getting this warning from a static analyzer? |
PHP 8.1 but yeah it might be from a static analyzer or Symfony. Not completely sure... does it matter? |
I just confirmed it's a PHP 8.1 deprecation. See https://3v4l.org/ZftUl |
I understand now, it's an error because we are passing null to the parent constructor. |
Yup, exactly. Can you merge it then please? |
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.
LGTM, thanks @enumag
No description provided.