Skip to content

Commit 03430fd

Browse files
committed
ArrowFunctionVoidIgnoreExtension: fixed matching error message format
1 parent 000b2ce commit 03430fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Php/ArrowFunctionVoidIgnoreExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ public function shouldIgnore(Error $error, Node $node, Scope $scope): bool
5454
}
5555

5656
foreach ($this->functions as $function) {
57-
if (str_contains($message, "function $function(")) {
57+
if (str_contains($message, "function $function ") || str_contains($message, "function $function(")) {
5858
return true;
5959
}
6060
}
6161

6262
foreach ($this->methods as $method) {
63-
if (str_contains($message, "$method(")) {
63+
if (str_contains($message, "$method ") || str_contains($message, "$method(")) {
6464
return true;
6565
}
6666
}

0 commit comments

Comments
 (0)