APY / APYBreadcrumbTrailBundle

Generate a dynamic Twig breadcrumbs trail via Annotations, PHP Attributes or PHP methods.
81 stars 32 forks source link

PHP 8.1 deprecation warnings #82

Closed knallcharge closed 1 year ago

knallcharge commented 2 years ago

After updating to PHP 8.1 the following warnings are issued:

Deprecated: Return type of APY\BreadcrumbTrailBundle\BreadcrumbTrail\Trail::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor\apy\breadcrumbtrail-bundle\src\BreadcrumbTrail\Trail.php on line 199 Deprecated: Return type of APY\BreadcrumbTrailBundle\BreadcrumbTrail\Trail::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor\apy\breadcrumbtrail-bundle\src\BreadcrumbTrail\Trail.php on line 191

Azikar commented 2 years ago

https://github.com/APY/APYBreadcrumbTrailBundle/pull/83

rvanlaak commented 1 year ago

83 was merged and released in v1.9.0