1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/17176] Resolve deprecation notices

PHPBB3-17176
This commit is contained in:
Marc Alexander
2023-08-19 22:05:37 +02:00
parent daf30b89f1
commit abd29e96b5
22 changed files with 57 additions and 54 deletions

View File

@@ -46,7 +46,7 @@ class ordered_service_collection extends service_collection
/**
* {@inheritdoc}
*/
public function getIterator()
public function getIterator(): \Iterator
{
if (!$this->is_ordered)
{
@@ -59,27 +59,27 @@ class ordered_service_collection extends service_collection
/**
* {@inheritdoc}
*/
public function offsetExists($index)
public function offsetExists($key): bool
{
if (!$this->is_ordered)
{
$this->sort_services();
}
return parent::offsetExists($index);
return parent::offsetExists($key);
}
/**
* {@inheritdoc}
*/
public function offsetGet($index)
public function offsetGet($key): mixed
{
if (!$this->is_ordered)
{
$this->sort_services();
}
return parent::offsetGet($index);
return parent::offsetGet($key);
}
/**