Skip to content

Commit 2d1efac

Browse files
committed
[+]: ignore parameter names and check only the types
1 parent 3d36fed commit 2d1efac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/voku/PhpDocFixer/CliCommand/PhpDocFixerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function execute(InputInterface $input, OutputInterface $output): int
105105
if (
106106
($stubsInfo[$functionName_or_classAndMethodName]['return'] ?? []) !== ($types['return'] ?? [])
107107
||
108-
($stubsInfo[$functionName_or_classAndMethodName]['params'] ?? []) !== ($types['params'] ?? [])
108+
(array_values($stubsInfo[$functionName_or_classAndMethodName]['params'] ?? [])) !== (array_values($types['params'] ?? []))
109109
) {
110110
$pathTmp = $types['absoluteFilePath'];
111111
unset($types['absoluteFilePath']);

0 commit comments

Comments
 (0)