Skip to content

Commit bde0682

Browse files
committed
Add autoload to PhpDoc command
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent 1db86ac commit bde0682

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Command/PhpDocCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,10 @@ private function runRector(InputInterface $input, OutputInterface $output): int
106106
'process',
107107
'--config',
108108
parent::getConfigFile(RefactorCommand::CONFIG),
109+
'--autoload-file',
110+
$this->getAbsolutePath('vendor/autoload.php'),
109111
'--only',
110-
'\\' . AddMissingMethodPhpDocRector::class,
112+
AddMissingMethodPhpDocRector::class,
111113
];
112114

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

0 commit comments

Comments
 (0)