Skip to content

Commit 57e9856

Browse files
committed
fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! fixup! autoload
1 parent fe963ef commit 57e9856

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Command/AddTypesCommand.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7575
return Command::SUCCESS;
7676
}
7777

78+
/**
79+
* @param string[] $relativeCodeDirs
80+
*/
7881
private function runPhpStan(array $relativeCodeDirs, string $projectPath, bool $isDebug): void
7982
{
8083
$this->symfonyStyle->title('1. Running PHPStan to collect data...');
@@ -108,7 +111,7 @@ private function runRector(array $projectDirs, string $projectPath, bool $isDebu
108111
'process',
109112
...$projectDirs,
110113
'--config',
111-
realpath(__DIR__ . '/../../rector/rector-argtyper.php'),
114+
(string) realpath(__DIR__ . '/../../rector/rector-argtyper.php'),
112115
'--clear-cache',
113116
];
114117

src/Helpers/ProjectDirectoryFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function findCodeDirsRelative(string $projectPath): array
4343
foreach ($fileInfos as $fileInfo) {
4444
$relativePath = substr(
4545
(string) realpath($fileInfo->getRealPath()),
46-
(string) strlen(realpath($projectPath)) + 1
46+
strlen((string) realpath($projectPath)) + 1
4747
);
4848
$relativeDirs[] = $relativePath;
4949
}

0 commit comments

Comments
 (0)