Deprecated messages with PHP 8.1
-
After upgrading from PHP 7.4 to 8.0 all works fine.
After upgrading from PHP 8.0 to 8.1 Timber throws several deprecation messages:
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 /var/www/wordpress/wp-content/plugins/timber-library/vendor/twig/twig/src/Node/Node.php on line 213
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 /var/www/wordpress/wp-content/plugins/timber-library/vendor/twig/twig/src/Node/Node.php on line 221
Deprecated: Return type of Twig\Markup::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/wordpress/wp-content/plugins/timber-library/vendor/twig/twig/src/Markup.php on line 38
- The topic ‘Deprecated messages with PHP 8.1’ is closed to new replies.