CristalTeam / php-api-wrapper

:rainbow: Work with APIs like with Laravel Eloquent or Doctrine (no longer a dream)
MIT License
117 stars 32 forks source link

Update return types to silence deprecation notices with PHP 8.1 #36

Open erindornbusch opened 2 years ago

erindornbusch commented 2 years ago

This PR updates the return types of ArrayAccess and JsonSerializable interface methods in order to suppress deprecation notices when using the package with PHP 8.1.

Could use the #[\ReturnTypeWillChange] attribute throughout if that's preferable?