Skip to content

Commit 6471f7b

Browse files
fix: phpstan build
1 parent a42034d commit 6471f7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,11 @@ public function __construct(
3232
}
3333

3434
/**
35-
* @param array<mixed, mixed>|object $objectOrArray
35+
* @template T of object|array<mixed, mixed>
36+
*
37+
* @param T $objectOrArray
38+
*
39+
* @param-out ($objectOrArray is array<mixed, mixed> ? array<mixed, mixed> : T) $objectOrArray
3640
*/
3741
public function setValue(object|array &$objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value): void
3842
{

0 commit comments

Comments
 (0)