Skip to content

Commit

Permalink
Make the array a list otherwise there's an error saying it's not a list
Browse files Browse the repository at this point in the history
  • Loading branch information
spaze committed Jul 10, 2023
1 parent b76a9c9 commit a664308
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/tests/Training/Dates/UpcomingTrainingDatesTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ class UpcomingTrainingDatesTest extends TestCase
'note' => 'Note 4',
],
];
$result = array_filter($result, function (array $row) use ($includeNonPublic): bool {
$result = array_values(array_filter($result, function (array $row) use ($includeNonPublic): bool {
return $includeNonPublic || $row['public'];
});
}));
$this->database->setFetchAllDefaultResult($result);
}

Expand Down

0 comments on commit a664308

Please sign in to comment.