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

Not support in php v8.2 #142

Open
jeeinn opened this issue Feb 16, 2023 · 1 comment
Open

Not support in php v8.2 #142

jeeinn opened this issue Feb 16, 2023 · 1 comment

Comments

@jeeinn
Copy link

jeeinn commented Feb 16, 2023

Error:

1

 Using ${var} in strings is deprecated, use {$var} instead
  • Can be fixed in this version

2

Function strftime() is deprecated
  • Can be fixed in this version, Alternatives to this function date()

3

[TypeError]                              
  Unsupported operand types: int - string
Exception trace:
 () at /www/app/vendor/amenadiel/jpgraph/src/util/DateLocale.php:60
  • Can be fixed in this version, using (int)

4

imagefilledpolygon(): Using the $num_points parameter is deprecated
#1 /www/app/vendor/amenadiel/jpgraph/src/image/Image.php(1611): imagefilledpolygon(Object(GdImage), Array, 4, 16777215)
  • it cannot be modified directly, which will cause compatibility problems. (deprecated as of PHP 8.1.0)

5

Creation of dynamic property Amenadiel\JpGraph\Themes\UniversalTheme::$graph is deprecated
#0 /www/app/vendor/amenadiel/jpgraph/src/themes/Theme.php(52)
Creation of dynamic property Amenadiel\JpGraph\Graph\LinearTicks::$ticks_label is deprecated
#0 /www/app/vendor/amenadiel/jpgraph/src/graph/LinearTicks.php(209)
  • Can be fixed in this version, declare the class properties

6

Implicit conversion from float 48.5 to int loses precision
#1 /www/app/vendor/amenadiel/jpgraph/src/image/Image.php(1158): imagettftext(Object(GdImage), 8, 0, 48.5, 98.0, 4473924
Implicit conversion from float 113.5 to int loses precision
#1 /www/app/vendor/amenadiel/jpgraph/src/image/Image.php(1048): imagettftext(Object(GdImage), 8, 0, 113.5, 52.0, 4473924, 
  • Can be fixed in this version, using (int)
@jeeinn jeeinn changed the title php v8.2.2 not support php v8.2 not support Feb 16, 2023
@jeeinn jeeinn changed the title php v8.2 not support Not support in php v8.2 Feb 16, 2023
@logosur
Copy link

logosur commented Jun 17, 2024

same issue here

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

2 participants