From 61b1a5f6b843d4ed18abe54e904d364983adb9d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 13 Jan 2026 11:48:59 +0100 Subject: [PATCH] chore: While at it use strict array search in build/integration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- build/integration/features/bootstrap/Trashbin.php | 2 +- build/integration/features/bootstrap/WebDav.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/integration/features/bootstrap/Trashbin.php b/build/integration/features/bootstrap/Trashbin.php index dfcc23289a7..1517ef3aaed 100644 --- a/build/integration/features/bootstrap/Trashbin.php +++ b/build/integration/features/bootstrap/Trashbin.php @@ -97,7 +97,7 @@ trait Trashbin { $elementsSimplified = $this->simplifyArray($elementRows); foreach ($elementsSimplified as $expectedElement) { $expectedElement = ltrim($expectedElement, '/'); - if (array_search($expectedElement, $trashContent) === false) { + if (array_search($expectedElement, $trashContent, true) === false) { Assert::fail("$expectedElement" . ' is not in trash listing'); } } diff --git a/build/integration/features/bootstrap/WebDav.php b/build/integration/features/bootstrap/WebDav.php index 2cb37002ac0..e433a570a78 100644 --- a/build/integration/features/bootstrap/WebDav.php +++ b/build/integration/features/bootstrap/WebDav.php @@ -438,7 +438,7 @@ trait WebDav { } foreach ($table->getRows() as $row) { - $key = array_search($row[0], $foundTypes); + $key = array_search($row[0], $foundTypes, true); if ($key === false) { throw new \Exception('Expected type ' . $row[0] . ' not found'); }