diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-11-21 11:40:34 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-12-07 22:32:06 +0100 |
commit | f0a0bfaaeef447157801f116e90435114b271572 (patch) | |
tree | 5c5079b5275d95c079e754038ca012684e1537a6 /lib/private/ServerContainer.php | |
parent | 306d7829b58cc840e2e6fcb6d4dfd341da37547a (diff) | |
download | nextcloud-server-f0a0bfaaeef447157801f116e90435114b271572.tar.gz nextcloud-server-f0a0bfaaeef447157801f116e90435114b271572.zip |
Move to str_starts_with
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/ServerContainer.php')
-rw-r--r-- | lib/private/ServerContainer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/ServerContainer.php b/lib/private/ServerContainer.php index 4352d0e8350..e53737990e8 100644 --- a/lib/private/ServerContainer.php +++ b/lib/private/ServerContainer.php @@ -139,7 +139,7 @@ class ServerContainer extends SimpleContainer { public function query(string $name, bool $autoload = true) { $name = $this->sanitizeName($name); - if (strpos($name, 'OCA\\') !== 0) { + if (str_starts_with($name, 'OCA\\')) { // Skip server container query for app namespace classes try { return parent::query($name, false); |