Skip to content

Commit 51502d6

Browse files
committed
Fix absolute path of php-cs-fixer
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent bde0682 commit 51502d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Command/PhpDocCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7777
private function runPhpCsFixer(InputInterface $input, OutputInterface $output): int
7878
{
7979
$arguments = [
80-
\dirname(__DIR__, 2) . '/vendor/bin/php-cs-fixer',
80+
$this->getAbsolutePath('vendor/bin/php-cs-fixer'),
8181
'fix',
8282
'--config=' . parent::getConfigFile(self::CONFIG),
8383
'--cache-file=' . $this->getCurrentWorkingDirectory() . '/tmp/cache/.php-cs-fixer.cache',
@@ -109,7 +109,7 @@ private function runRector(InputInterface $input, OutputInterface $output): int
109109
'--autoload-file',
110110
$this->getAbsolutePath('vendor/autoload.php'),
111111
'--only',
112-
AddMissingMethodPhpDocRector::class,
112+
'\\' . AddMissingMethodPhpDocRector::class,
113113
];
114114

115115
if (! $input->getOption('fix')) {

0 commit comments

Comments
 (0)