PHP Deprecated Errors & Notices in PHP 8.2
-
Hi ,
In my WP site (6.4.0) , after the upgrade of PHP 8.2 from 7.4, i am seeing deprecated errors/notices when enable the debug mode.
Below are some samples,
[05-Jan-2024 09:25:01 UTC] PHP Deprecated: Method ReflectionParameter::getClass() is deprecated in /code/wp-content/themes/****/vendor/illuminate/container/Container.php on line 900
[05-Jan-2024 09:25:01 UTC] PHP Notice: file_get_contents(): Read of 8192 bytes failed with errno=21 Is a directory in /code/wp-includes/functions.php on line 4593
[05-Jan-2024 09:25:01 UTC] PHP Notice: Error when decoding a JSON file at path /code/wp-content/themes/****/resources: Syntax error in /code/wp-includes/functions.php on line 4601[05-Jan-2024 13:23:06 UTC] PHP Deprecated: Return type of Illuminate\Config\Repository::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /code/wp-content/themes/****/vendor/illuminate/config/Repository.php on line 164
[05-Jan-2024 13:23:06 UTC] PHP Deprecated: Return type of Illuminate\Config\Repository::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /code/wp-content/themes/****/vendor/illuminate/config/Repository.php on line 175Should i avoid these errors by disable debug mode ? or need to fix it?
kindly answer.
- The topic ‘PHP Deprecated Errors & Notices in PHP 8.2’ is closed to new replies.