Skip to content
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

QrCode: Fixed 'Implicitly marking parameter as nullable is deprecate… #269

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

finpension-aless
Copy link
Contributor

Fixes the error we get with Phpunit and PHP8.4:

Sprain\SwissQrBill\QrCode\QrCode::create(): Implicitly marking parameter $fileFormat as nullable is deprecated, the explicit nullable type must be used instead

…, the explicit nullable type must be used instead' deprecation warning.
@sprain
Copy link
Owner

sprain commented Dec 6, 2024

Thank you!
Not an error, just a warning. But still a good improvement!

@sprain sprain merged commit d61a3a3 into sprain:master Dec 6, 2024
9 checks passed
@finpension-aless finpension-aless deleted the php84-deprecation-fix branch December 6, 2024 12:45
@finpension-aless
Copy link
Contributor Author

Sorry, we just noticed it because our PHPUnit tests failed since we set the flag "failOnDeprecation" and then it's shown as an error. Thanks for merging so fast!

@sprain
Copy link
Owner

sprain commented Dec 6, 2024

@finpension-aless
As you never have complete control over dependencies, it may be good to exclude the from deprecation checks in your project. See https://docs.phpunit.de/en/11.4/error-handling.html#limiting-issues-to-your-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants