From 6ab33f890cdb444fdbc9a39d121bdaa810394060 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 6c8fd5e4fb6..7a2203ec9f0 100644 --- a/build/integration/features/bootstrap/Trashbin.php +++ b/build/integration/features/bootstrap/Trashbin.php @@ -96,7 +96,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 e71502b6b0c..1ee384baacf 100644 --- a/build/integration/features/bootstrap/WebDav.php +++ b/build/integration/features/bootstrap/WebDav.php @@ -433,7 +433,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'); }