mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04: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
2edd38cc00
commit
6ab33f890c
2 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,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');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -433,7 +433,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