From c1952cb2096efb83225fb06a0cc131343a325457 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Thu, 10 Sep 2026 19:30:30 +0200 Subject: [PATCH] fix(files): pass the strict flag to in_array() in getOrCreateFolder() #53048 added an in_array() call without $strict after the InArrayStrictChecker psalm rule had landed, so static analysis now fails on every pull request. dirname() always returns a string, so strict comparison does not change behaviour. Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Files/Node/Folder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Files/Node/Folder.php b/lib/private/Files/Node/Folder.php index 9d5b9e807e66c..1699f5ae618b1 100644 --- a/lib/private/Files/Node/Folder.php +++ b/lib/private/Files/Node/Folder.php @@ -550,7 +550,7 @@ public function getOrCreateFolder(string $path, int $maxRetries = 5): IFolder { return $folder; } } catch (NotFoundException) { - $folder = in_array(dirname($path), ['.','/']) ? $this : $this->get(dirname($path)); + $folder = in_array(dirname($path), ['.','/'], true) ? $this : $this->get(dirname($path)); if (!($folder instanceof Folder)) { throw new NotPermittedException("Unable to create folder $path. Parent is not a directory."); }