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

Fix compatibility with PHP 8.3.0 #9

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

suve
Copy link
Contributor

@suve suve commented Jan 27, 2024

The imagerotate() function used to take 3 parameters. Then, in PHP 5.1.0, an optional fourth parameter was added. And now, in PHP 8.3.0, that parameter has been removed. Since the code in GdAdapter always explicitly provides the fourth parameter when calling the function, this causes it to fail with an ArgumentCountError under PHP 8.3.0.

This commit removes the unused fourth parameter from all call sites.

The imagerotate() function used to take 3 parameters. Then, in PHP
5.1.0, an optional fourth parameter was added. And now, in PHP 8.3.0,
that parameter has been removed. Since the code in GdAdapter always
explicitly provides the fourth parameter when calling the function,
this causes it to fail with an ArgumentCountError under PHP 8.3.0.

This commit removes the unused fourth parameter from all call sites.
@splitbrain splitbrain merged commit 93cd203 into splitbrain:master Jan 28, 2024
6 checks passed
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