Skip to content

Commit f9a8e99

Browse files
authored
Improved phpdoc for hyperf/collection (#7022)
1 parent 101afec commit f9a8e99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Compiler/ComponentTagCompiler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function partitionDataAndAttributes(string $class, array $attributes): ar
211211
$constructor = (new ReflectionClass($class))->getConstructor();
212212

213213
$parameterNames = $constructor
214-
? collect($constructor->getParameters())->map->getName()->all()
214+
? collect($constructor->getParameters())->map->getName()->all() // @phpstan-ignore method.nonObject
215215
: [];
216216

217217
return collect($attributes)->partition(fn ($value, $key) => in_array(Str::camel($key), $parameterNames))->all();

0 commit comments

Comments
 (0)