aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/ServerContainer.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-04-15 20:17:23 +0200
committerRobin Appelman <robin@icewind.nl>2025-06-24 16:12:06 +0200
commit4bdc0751c0c422da70aa1ec75dee817794c65ae6 (patch)
treef9f1cbe938f043b8235f1d5070968506403f63a8 /lib/private/ServerContainer.php
parentbb632f0cfae8b0a6417be24666e8cb7587799c34 (diff)
downloadnextcloud-server-container-optimizations.tar.gz
nextcloud-server-container-optimizations.zip
fix: use array_key_exists instead of isset in di containercontainer-optimizations
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/ServerContainer.php')
-rw-r--r--lib/private/ServerContainer.php2
1 files changed, 1 insertions, 1 deletions
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) {