Skip to content

Commit 4fd15cd

Browse files
committed
Fix docblocks for all to show that they are expected to receive an
array of things
1 parent d4207ed commit 4fd15cd

File tree

2 files changed

+92
-88
lines changed

2 files changed

+92
-88
lines changed

bin/MethodDocGenerator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ private function generateMethodDocs($methods, $format, $skipParameterTest, $pref
8181
}
8282
}
8383

84+
if ($prefix === 'all' && strpos($type, 'null') === false && $parameterIndex === 0) {
85+
$type = str_replace('|', '[]|', $type).'[]';
86+
}
87+
8488
if ($prefix === 'nullOr' && strpos($type, 'null') === false && $parameterIndex === 0) {
8589
$type .= '|null';
8690
}

0 commit comments

Comments
 (0)