Skip to content

Conversation

@derrabus
Copy link

@derrabus derrabus commented Aug 4, 2021

PHP 8.1 triggers a deprecation warning if a class implements IteratorAggregate without specifying a return type for getIterator(). Doing so would break PHP 5 compatibility, so I've added the ReturnTypeWillChange attribute which tells PHP that the return type will be added in a future release. This way, the error is not triggered.

@tillkruss tillkruss merged commit 9cd093b into predis:v1.1 Aug 5, 2021
@tillkruss
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants