Closed arnested closed 2 years ago
To be fair, most of these functions will return an array
since they are all using array_filter
so this could be improved to just an array
return type instead of the more confusing mixed
return type
Ah but then its not compatible with the JsonSerializable::jsonSerialize(): mixed
, never mind my last comment
To retain backwards compatibility with 7.x all the methods could be annotated with #[\ReturnTypeWillChange]
instead.
Let me know if I should prepare another pull request with that change.
@arnested sorry for lately reply and thanks your PR!
@lesstif Merry Christmas and just a a friendly reminder: would love to see a release marked so composer updates the package automatically 😉
hi @LordSimal happy new year! i was released now version 3.0.0.
@arnested Hi!. happy new year and could you to prepare another PR with ReturnTypeWiilChange annotation please?
@lesstif see #404
To be compatible with PHP 8.1.
The mixed return type was introduced in PHP 8.0. This pull request makes the code incompatible with PHP 7.x.