Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!5Issue #3258816: [PHP 8.1] Deprecated function: strpos(): Passing null to parameter #1
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment