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

phplot.php: type casts for PHP 8.2 #10

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

jeriba4
Copy link

@jeriba4 jeriba4 commented Nov 1, 2023

As announced in issue comment, I´ve just cast the arguments of the calls used for my use cases to int, which fixes PHP 8.2 type mismatch notifications.

Of course, a more profound approach would be to type the respective function parameters or class properties to int or, if anyway needed, nullable int (?int), but that might break backward compatibility with PHP 7.x.

As announced in issue comment, I´ve just cast the arguments of the calls used for my use cases to int.

Of course, a more profound approach would be to type the respective function parameters or class properties to int or, if anyway needed, nullable int (?int), but that might break compatibility with PHP 7.x.
@mostafasoufi
Copy link

👍🏽

@remluben
Copy link
Contributor

@AJRepo any chance you accept this?

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.

3 participants