minor change to comply with PSR-11

This commit is contained in:
Eric Espie
2026-01-27 16:48:11 +01:00
parent 3092e9d5d4
commit 814f91bd48

View File

@@ -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");
}