Skip to content

Commit

Permalink
replace preg_match by a custom expression
Browse files Browse the repository at this point in the history
  • Loading branch information
JoMessina committed Nov 12, 2024
1 parent 3d4efae commit 50486e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TestPattern.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function __construct($name)
{
}

private function compile(string $pattern, string $subject): bool
private function compile(string $pattern, string $subject): string

Check failure on line 13 in src/TestPattern.php

View workflow job for this annotation

GitHub Actions / phpstan

Method Kiboko\Component\StringExpressionLanguage\TestPattern::compile() is unused.
{
return <<<PHP
\$result = preg_match({$pattern}, {$subject});
Expand Down

0 comments on commit 50486e1

Please sign in to comment.