N°4517 - PHP 8.1: Fix return type for classes implementing ArrayAccess

Return type cannot be set to mixed as the code need to be compatible with PHP 7.2+
This commit is contained in:
Molkobain
2022-08-03 10:37:02 +02:00
parent 784f568575
commit ef81bdb1e1

View File

@@ -73,6 +73,7 @@ class AppVariable implements ArrayAccess
/**
* @inheritDoc
*/
#[\ReturnTypeWillChange]
public function offsetGet($offset)
{
if ($this->container->hasParameter($offset)) {