Skip to content

Commit f31f4eb

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 dc843f6 commit f31f4eb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

build/integration/features/bootstrap/Trashbin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public function checkTrashContents($user, $folder, $expectedElements) {
9797
$elementsSimplified = $this->simplifyArray($elementRows);
9898
foreach ($elementsSimplified as $expectedElement) {
9999
$expectedElement = ltrim($expectedElement, '/');
100-
if (array_search($expectedElement, $trashContent) === false) {
100+
if (array_search($expectedElement, $trashContent, true) === false) {
101101
Assert::fail("$expectedElement" . ' is not in trash listing');
102102
}
103103
}
@@ -121,7 +121,7 @@ public function checkTrashContains($user, $type, $file) {
121121
return $item['{http://nextcloud.org/ns}trashbin-filename'];
122122
}, $elementList));
123123

124-
if (array_search($name, array_values($trashContent)) === false) {
124+
if (array_search($name, array_values($trashContent), true) === false) {
125125
Assert::fail("$name" . ' is not in trash listing');
126126
}
127127
}

build/integration/features/bootstrap/WebDav.php

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

440440
foreach ($table->getRows() as $row) {
441-
$key = array_search($row[0], $foundTypes);
441+
$key = array_search($row[0], $foundTypes, true);
442442
if ($key === false) {
443443
throw new \Exception('Expected type ' . $row[0] . ' not found');
444444
}

0 commit comments

Comments
 (0)