Skip to content

Commit fe58fef

Browse files
come-ncbackportbot[bot]
authored andcommitted
chore: While at it use strict array search in build/integration
Signed-off-by: Côme Chilliet <[email protected]> [skip ci]
1 parent fa2c86f commit fe58fef

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
@@ -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
}

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)