Skip to content

Commit

Permalink
Use ::class in exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Jun 24, 2020
1 parent ca7ea33 commit f384d55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-bundle/src/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private function findRootPage(array $parameters): PageModel
);

if (null === $rootPage) {
throw new \RuntimeException('The Contao\CoreBundle\Routing\UrlGenerator requires a domain and locale or legacy routing. Configure "prepend_locale" or "url_suffix" in the Contao bundle.');
throw new \RuntimeException(static::class.' requires a domain and locale or legacy routing. Configure "prepend_locale" or "url_suffix" in the Contao bundle.');
}

$rootPage->loadDetails();
Expand Down

0 comments on commit f384d55

Please sign in to comment.