Unverified Commit cd09f1e2 authored by Hoi Sing Edison Wong's avatar Hoi Sing Edison Wong
Browse files

Issue #3258816: [PHP 8.1] Deprecated function: strpos(): Passing null to parameter #1

parent b42e17c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@ class StyleguideThemeNegotiator implements ThemeNegotiatorInterface, ContainerIn
   *   decide.
   */
  public function applies(RouteMatchInterface $route_match) {
    if (strpos($route_match->getRouteName(), 'styleguide.') === FALSE) {
    if (strpos((string) $route_match->getRouteName(), 'styleguide.') === FALSE) {
      return FALSE;
    }