Skip to content

Commit 054c558

Browse files
committed
Names of coding standards should prefixed by "@" in v2 of PHP-CS-Fixer
Error: In ConfigurationResolver.php line 755: The rules contain unknown fixers: "PSR2".
1 parent 0243011 commit 054c558

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/PhpGitHooks/Module/PhpCsFixer/Contract/Command/PhpCsFixerToolHandler.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ public function __construct(OutputInterface $output, PhpCsFixerToolProcessorInte
4545
private function execute(array $files, $psr0, $psr1, $psr2, $symfony, $options, $errorMessage)
4646
{
4747
if (true === $psr0) {
48-
$this->executeTool($files, 'PSR0', $options, $errorMessage);
48+
$this->executeTool($files, '@PSR0', $options, $errorMessage);
4949
}
5050

5151
if (true === $psr1) {
52-
$this->executeTool($files, 'PSR1', $options, $errorMessage);
52+
$this->executeTool($files, '@PSR1', $options, $errorMessage);
5353
}
5454

5555
if (true === $psr2) {
56-
$this->executeTool($files, 'PSR2', $options, $errorMessage);
56+
$this->executeTool($files, '@PSR2', $options, $errorMessage);
5757
}
5858

5959
if (true === $symfony) {
60-
$this->executeTool($files, 'SYMFONY', $options, $errorMessage);
60+
$this->executeTool($files, '@SYMFONY', $options, $errorMessage);
6161
}
6262
}
6363

0 commit comments

Comments
 (0)