Skip to content

Commit 6ee2ffd

Browse files
committed
qa: fix issue with nullable return value being used as string
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
1 parent 893e4bc commit 6ee2ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Listener/EnableHalRenderCollectionsListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __invoke(MvcEvent $e)
2121
$matches = $e->getRouteMatch();
2222
if (
2323
! $matches
24-
|| 0 !== strpos($matches->getParam('controller'), 'Laminas\ApiTools\Admin\\')
24+
|| 0 !== strpos($matches->getParam('controller') ?? '', 'Laminas\ApiTools\Admin\\')
2525
) {
2626
return;
2727
}

0 commit comments

Comments
 (0)