Hi:
On PHPlot 6.2.0, running on PHP 7.3.33
If I include the line
$graph->TuneYAutoRange(0, 2, 2);
I get: Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /includes/phplot/phplot.php on line 5424
If I comment that line of code, it doesn't throw any deprecated notice.
The solution is to replace line 5424 on PHPlot.php with:
if (isset($adjust_mode) && strpos('TRI', chr($adjust_mode[0])) !== FALSE)
Hi:
On PHPlot 6.2.0, running on PHP 7.3.33
If I include the line
$graph->TuneYAutoRange(0, 2, 2);I get: Deprecated: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior in /includes/phplot/phplot.php on line 5424
If I comment that line of code, it doesn't throw any deprecated notice.
The solution is to replace line 5424 on PHPlot.php with:
if (isset($adjust_mode) && strpos('TRI', chr($adjust_mode[0])) !== FALSE)