Skip to content

Commit

Permalink
Fix psalm (#1710)
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored Aug 3, 2023
1 parent e690dbf commit d2a8460
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Route/RoutePageGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,11 @@ public function update(SiteInterface $site, ?OutputInterface $output = null, boo
if (
!$this->decoratorStrategy->isRouteNameDecorable($name)
|| !$this->decoratorStrategy->isRouteUriDecorable($route->getPath())
|| (null !== $routeHostRegex
&& 0 === preg_match($routeHostRegex, $site->getHost() ?? ''))
|| (
null !== $routeHostRegex
&& '' !== $routeHostRegex
&& 0 === preg_match($routeHostRegex, $site->getHost() ?? '')
)
) {
if (null !== $page) {
$page->setEnabled(false);
Expand Down

0 comments on commit d2a8460

Please sign in to comment.