-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PHP8 deprecations #67
Conversation
src/AssetCollection.php
Outdated
{ | ||
return isset($this->items[$this->index]); | ||
} | ||
|
||
public function current() | ||
public function current(): mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can use mixed
yet as it causes errors in PHP7.x. We might be able to use #[\ReturnTypeWillChange]
attribute and no formal return type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for that. I've added the attributes and remove the mixed return type.
I have similar errors now on my end:
|
Is there any plan on releasing this? |
Added the return types for the Iterator overrides