Skip to content

Commit e6feb12

Browse files
author
Joseluis Laso
committed
Fix the needle for PHPLint in order to avoid other php.*** endings
1 parent 08fbde6 commit e6feb12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpGitHooks/Infrastructure/PhpLint/PhpLintHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
class PhpLintHandler extends ToolHandler implements FilesToolHandlerInterface
1616
{
17-
const NEEDLE = '/(\.php)|(\.inc)$/';
17+
const NEEDLE = "/[(\.php)|(\.inc)]$/";
1818
/** @var array */
1919
private $files;
2020

0 commit comments

Comments
 (0)