-
-
Notifications
You must be signed in to change notification settings - Fork 38
PHP 8.4 fix #139
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
PHP 8.4 fix #139
Conversation
| * @throws IOException When file type is unknown | ||
| */ | ||
| public function mirror(string $originDir, string $targetDir, \Traversable $iterator = null, array $options = []); | ||
| public function mirror(string $originDir, string $targetDir, ?\Traversable $iterator = null, array $options = []); |
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.
PHP 8.4 deprecates implicitly nullable types.
It is also worth adding this change to the implementing class.
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.
done, also found another one.
|
I updated the PR description with the deprecated I always have running Sylius 2.0. @GSadee can you help here? |
In my opinion, this change is not a BC break, as even if this changes the signature of the method, it only extends the scope of the type. So I'm ok with this change and implementing it to this branch 👌🏻 |
Using Sylius 2.0 with PHP 8.4 some deprecation notices are displayed: