-
Notifications
You must be signed in to change notification settings - Fork 437
Fix PHP 8.4 deprecations #517
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
Conversation
src/Knp/Snappy/AbstractGenerator.php
Outdated
| * @return $this | ||
| */ | ||
| protected function addOption($name, $default = null) | ||
| protected function addOption($name, ?$default = null) |
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.
This change needs to be reverted.
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.
I do not understand. Why does it need to be reverted?
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.
Nevermind, I rectified the error. Typical gnito fault.
src/Knp/Snappy/AbstractGenerator.php
Outdated
| * @return string The filename | ||
| */ | ||
| protected function createTemporaryFile($content = null, $extension = null) | ||
| protected function createTemporaryFile(?$content = null, ?$extension = null) |
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.
same here
src/Knp/Snappy/Image.php
Outdated
| * {@inheritdoc} | ||
| */ | ||
| public function __construct($binary = null, array $options = [], array $env = null) | ||
| public function __construct(?$binary = null, array $options = [], ?array $env = null) |
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.
| public function __construct(?$binary = null, array $options = [], ?array $env = null) | |
| public function __construct($binary = null, array $options = [], ?array $env = null) |
|
now this is basically the same as #515 |
|
I will close my PR when either one gets merged. |
|
Duplicate of #515 |
No description provided.