chore: While at it use strict array search in build/integration

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
Côme Chilliet 2026-01-13 11:48:59 +01:00 committed by Andy Scherzinger
parent a82c28b5ca
commit 61b1a5f6b8
2 changed files with 2 additions and 2 deletions

View file

@ -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');
}
}

View file

@ -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');
}