Currently when using this library with PHP 8.1 the following type error occures:
NOTICE: PHP message: PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Maclof\Kubernetes\RepositoryRegistry::offsetExists($method) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/backend/vendor/maclof/kubernetes-client/src/RepositoryRegistry.php:54
Possible solutions:
drop support for PHP up to version 7.3 (end of life by now) and use native return types which are available since PHP 7.4 (favorite ^^)
Description:
Currently when using this library with PHP 8.1 the following type error occures:
Possible solutions:
ReturnTypeWillChange