PHP Deprecated
-
I have thousands of such errors in logs.
[05-Dec-2024 20:40:17 UTC] PHP Deprecated: Return type of AmpProject\Optimizer\ErrorCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/***/domains/***.pl/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Optimizer/ErrorCollection.php on line 67
[05-Dec-2024 20:40:17 UTC] PHP Deprecated: Return type of AmpProject\Optimizer\ErrorCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/***/domains/***.pl/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Optimizer/ErrorCollection.php on line 57
[05-Dec-2024 20:40:17 UTC] PHP Deprecated: Return type of AmpProject\Dom\Document::saveHTML(?DOMNode $node = null) should either be compatible with DOMDocument::saveHTML(?DOMNode $node = null): string|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/***/domains/***.pl/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php on line 575
[05-Dec-2024 20:40:17 UTC] PHP Deprecated: DOMDocument::createElement(): Passing null to parameter #2 ($value) of type string is deprecated in /home/***/domains/***.pl/public_html/wp-content/plugins/accelerated-mobile-pages/includes/vendor/tool/Dom/Document.php on line 2052How can this be fixed?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.