mirror of
https://github.com/nextcloud/server.git
synced 2026-02-28 20:40:39 -05:00
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:
parent
a82c28b5ca
commit
61b1a5f6b8
2 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue