• 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deprecated messages with PHP 8.1’ is closed to new replies.