1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-16 21:54:00 +02:00

[ticket/16955] Resolve psalm issues in di files

PHPBB3-16955
This commit is contained in:
Marc Alexander
2022-12-26 14:07:53 +01:00
parent cd026245fe
commit c4d3e1aa7b
4 changed files with 11 additions and 6 deletions

View File

@@ -85,13 +85,13 @@ class ordered_service_collection extends service_collection
/**
* Adds a service ID to the collection
*
* @param string $service_id
* @param string $name
* @param int $order
*/
public function add($service_id, $order = 0)
public function add($name, $order = 0)
{
$order = (int) $order;
$this->service_ids[$order][] = $service_id;
$this->service_ids[$order][] = $name;
$this->is_ordered = false;
}