Skip to content

Commit 88cd24d

Browse files
committed
Fixed PHPMatcher facade on php 5.3
1 parent 33c54a0 commit 88cd24d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Coduo/PHPMatcher/PHPMatcher.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ final class PHPMatcher
1414
*/
1515
public static function match($value, $pattern, &$error = null)
1616
{
17-
$matcher = (new SimpleFactory())->createMatcher();
17+
$factory = new SimpleFactory();
18+
$matcher = $factory->createMatcher();
1819

1920
if (!$matcher->match($value, $pattern)) {
2021
$error = $matcher->getError();

0 commit comments

Comments
 (0)