diff --git a/src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php b/src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php index 99cda66..6f77c4e 100644 --- a/src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php +++ b/src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php @@ -14,7 +14,7 @@ */ class PhpLintHandler extends ToolHandler implements FilesToolHandlerInterface { - const NEEDLE = '/(\.php)|(\.inc)$/'; + const NEEDLE = "/[(\.php)|(\.inc)]$/"; /** @var array */ private $files;