From 4bdc0751c0c422da70aa1ec75dee817794c65ae6 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 15 Apr 2025 20:17:23 +0200 Subject: fix: use array_key_exists instead of isset in di container Signed-off-by: Robin Appelman --- lib/private/ServerContainer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/ServerContainer.php') diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php index 2e45319fb3c..9d4b632c839 100644 --- a/lib/private/ServerContainer.php +++ b/lib/private/ServerContainer.php @@ -127,7 +127,7 @@ class ServerContainer extends SimpleContainer { // In case the service starts with OCA\ we try to find the service in // the apps container first. - if (!isset($this->items[$name]) && ($appContainer = $this->getAppContainerForService($name)) !== null) { + if (!array_key_exists($name, $this->items) && !array_key_exists($name, $this->aliases) && ($appContainer = $this->getAppContainerForService($name)) !== null) { try { return $appContainer->queryNoFallback($name); } catch (QueryException $e) { -- cgit v1.2.3