Skip to content

Commit 50486e1

Browse files
committed
replace preg_match by a custom expression
1 parent 3d4efae commit 50486e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestPattern.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public function __construct($name)
1010
{
1111
}
1212

13-
private function compile(string $pattern, string $subject): bool
13+
private function compile(string $pattern, string $subject): string
1414
{
1515
return <<<PHP
1616
\$result = preg_match({$pattern}, {$subject});

0 commit comments

Comments
 (0)