mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/17176] Resolve deprecation notices
PHPBB3-17176
This commit is contained in:
@@ -46,7 +46,7 @@ class service_collection extends \ArrayObject
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getIterator()
|
||||
public function getIterator(): \Iterator
|
||||
{
|
||||
return new service_collection_iterator($this);
|
||||
}
|
||||
@@ -54,9 +54,9 @@ class service_collection extends \ArrayObject
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function offsetGet($index)
|
||||
public function offsetGet($key): mixed
|
||||
{
|
||||
return $this->container->get($index);
|
||||
return $this->container->get($key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user