Skip to content

Commit 6ab33f8

Browse files
committed
chore: While at it use strict array search in build/integration
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 2edd38c commit 6ab33f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/integration/features/bootstrap/Trashbin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function checkTrashContents($user, $folder, $expectedElements) {
9696
$elementsSimplified = $this->simplifyArray($elementRows);
9797
foreach ($elementsSimplified as $expectedElement) {
9898
$expectedElement = ltrim($expectedElement, '/');
99-
if (array_search($expectedElement, $trashContent) === false) {
99+
if (array_search($expectedElement, $trashContent, true) === false) {
100100
Assert::fail("$expectedElement" . ' is not in trash listing');
101101
}
102102
}

build/integration/features/bootstrap/WebDav.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ public function theResponseShouldContainAShareTypesPropertyWith($table) {
433433
}
434434

435435
foreach ($table->getRows() as $row) {
436-
$key = array_search($row[0], $foundTypes);
436+
$key = array_search($row[0], $foundTypes, true);
437437
if ($key === false) {
438438
throw new \Exception('Expected type ' . $row[0] . ' not found');
439439
}

0 commit comments

Comments
 (0)