Debug log PHP deprecated messages
-
Hi,
We’re seeing this in our debug log (dev environment) all plugins are up to to date, as well as wordpress. We just updated PHP to 8.1.22. Which may be related. The site is still up and running, but we wanted to make you aware of this, if you weren’t already.
Here are a few of the many lines we’re seeing in the debug:[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of Twig\Node\Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\vendor\twig\twig\src\Node\Node.php on line 213
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of Twig\Node\Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\vendor\twig\twig\src\Node\Node.php on line 221
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 124
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 105
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::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 D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 140
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::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 D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Database\WpdbTable.php on line 159
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 124
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::next() should either be compatible with Iterator::next(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 97
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 109
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::valid() should either be compatible with Iterator::valid(): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 136
[24-Aug-2023 14:14:38 UTC] PHP Deprecated: Return type of RebelCode\Wpra\Core\Database\WpdbTable::rewind() should either be compatible with Iterator::rewind(): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in D:\usdev_htdocs\wp-content\plugins\wp-rss-aggregator\src\Util\IteratorDelegateTrait.php on line 83Please advise.
(I did ask ChatGPT, but I’d like your professional opinion ?? )
Thank you.The page I need help with: [log in to see the link]
- The topic ‘Debug log PHP deprecated messages’ is closed to new replies.