Fixed phpunit tests

This commit is contained in:
Jan Böhmer 2023-01-08 22:44:32 +01:00
parent 011bda3600
commit cad1206175
3 changed files with 20 additions and 12 deletions

View file

@ -211,6 +211,11 @@ final class PermissionData implements \JsonSerializable
//Filter out all empty or null values
foreach ($this->data as $permission => $operations) {
//Skip non-array values
if (!is_array($operations)) {
continue;
}
$ret[$permission] = array_filter($operations, function ($value) {
return $value !== null;
});