From e6feb12f2df5175a89c028a59c83e43a5038ec92 Mon Sep 17 00:00:00 2001 From: Joseluis Laso Date: Wed, 27 Apr 2016 11:33:50 +0200 Subject: [PATCH] Fix the needle for PHPLint in order to avoid other php.*** endings --- src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;