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

PHP 8.1+: imagefilledpolygon(): Argument #3 ($num_points_or_color) must be greater than or equal to 3 #259

Open
stevetitus opened this issue Jan 16, 2025 · 0 comments

Comments

@stevetitus
Copy link

In PHP 8.1 the following exception is thrown:

imagefilledpolygon(): Argument #3 ($num_points_or_color) must be greater than or equal to 3

As per the documentation for the function (https://www.php.net/manual/en/function.imagefilledpolygon.php), the third argument specifying number of points is no longer needed. However, when I change all calls to imagefilledpolygon() and omit this argument, I still see the same failure.

The issue logged here (#235) suggests replacing files but this doesn't solve the problem - I believe that it may have targeted PHP 8.0 and that's why it is no longer valid, but I'm not sure.

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

No branches or pull requests

1 participant