Skip to content

Conversation

hultberg
Copy link

Deprecation notice in php 8.1:

Deprecation Notice: Return type of Ayesh\ComposerPreload\PreloadList::getIterator(): iterable should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /tmp/php/build/hbw/vendor/ayesh/composer-preload/src/PreloadList.php:19

I saw no reason to use the attribute to suppress the notice than to fix it since this class is final.

Deprecation notice in php 8.1:
```
Deprecation Notice: Return type of Ayesh\ComposerPreload\PreloadList::getIterator(): iterable should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /tmp/php/build/hbw/vendor/ayesh/composer-preload/src/PreloadList.php:19
```

I saw no reason to use the attribute to suppress the notice than to fix it since this class is final.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant