PHPlot icon indicating copy to clipboard operation
PHPlot copied to clipboard

phplot.php: type casts for PHP 8.2

Open jeriba4 opened this issue 2 years ago • 2 comments

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.

jeriba4 avatar Nov 01 '23 15:11 jeriba4

👍🏽

mostafasoufi avatar Apr 23 '24 11:04 mostafasoufi