From 814f91bd48576107bada2c4e11ef45e787c2e76b Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 27 Jan 2026 16:48:11 +0100 Subject: [PATCH] minor change to comply with PSR-11 --- sources/Service/ServiceLocator/ServiceLocator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/Service/ServiceLocator/ServiceLocator.php b/sources/Service/ServiceLocator/ServiceLocator.php index 4277d0bb9..3e16ff884 100644 --- a/sources/Service/ServiceLocator/ServiceLocator.php +++ b/sources/Service/ServiceLocator/ServiceLocator.php @@ -46,7 +46,7 @@ class ServiceLocator implements ContainerInterface */ public function get(string $id): mixed { - if (!isset($this->aServices[$id])) { + if (!$this->has($id)) { throw new NotFoundException("Service ".json_encode($id)." not found"); }