Skip to content

Commit

Permalink
Fixed failing test if there are no url suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jul 9, 2020
1 parent 4dd724a commit 6288646
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core-bundle/src/Routing/Page/PageRegistry.php
Expand Up @@ -59,6 +59,10 @@ public function getUrlSuffixes(): array
$urlSuffixes[] = $enhancer->getUrlSuffixes();
}

if (0 === \count($urlSuffixes)) {
return [];
}

return array_filter(array_unique(array_merge(...$urlSuffixes)));
}

Expand Down

0 comments on commit 6288646

Please sign in to comment.