PHP 8.2 Deprecation notices
-
Hi,
After updating to PHP 8.2, I’m getting these deprecation notices. It looks like the Carbon library is out of date.
[02-Nov-2023 00:19:34 UTC] PHP Deprecated: Return type of Carbon\Carbon::createFromFormat($format, $time, $tz = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/public/content/plugins/stream/includes/lib/Carbon.php on line 372 [02-Nov-2023 00:19:34 UTC] PHP Deprecated: Return type of Carbon\Carbon::setTimezone($value) should either be compatible with DateTime::setTimezone(DateTimeZone $timezone): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/public/content/plugins/stream/includes/lib/Carbon.php on line 751 [02-Nov-2023 00:19:34 UTC] PHP Deprecated: Return type of Carbon\Carbon::setTime($hour, $minute, $second = 0, $microseconds = 0) should either be compatible with DateTime::setTime(int $hour, int $minute, int $second = 0, int $microsecond = 0): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/public/content/plugins/stream/includes/lib/Carbon.php on line 682 [02-Nov-2023 00:19:34 UTC] PHP Deprecated: Return type of Carbon\Carbon::setDate($year, $month, $day) should either be compatible with DateTime::setDate(int $year, int $month, int $day): DateTime, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/public/content/plugins/stream/includes/lib/Carbon.php on line 623 [02-Nov-2023 00:19:34 UTC] PHP Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/public/content/plugins/stream/includes/lib/Carbon.php on line 190
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.