Skip to content

Commit e244b09

Browse files
Fix return type
1 parent 051ef24 commit e244b09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Runner/Shorthand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class Shorthand
9393
*/
9494
public static function isShorthand(string $shorthand): bool
9595
{
96-
return preg_match('#^captainhook\.[a-z]+\.[a-z]+$#i', $shorthand);
96+
return (bool) preg_match('#^captainhook\.[a-z]+\.[a-z]+$#i', $shorthand);
9797
}
9898

9999
/**

0 commit comments

Comments
 (0)