From 6471f7b764271c45b5239743dbb5a78d6687211b Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 29 Jun 2025 16:25:00 +0200 Subject: [PATCH] fix: phpstan build --- src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php b/src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php index 8f20321d4ab..d1a63c711ea 100644 --- a/src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php +++ b/src/Laravel/Eloquent/PropertyAccess/PropertyAccessor.php @@ -32,7 +32,11 @@ public function __construct( } /** - * @param array|object $objectOrArray + * @template T of object|array + * + * @param T $objectOrArray + * + * @param-out ($objectOrArray is array ? array : T) $objectOrArray */ public function setValue(object|array &$objectOrArray, string|PropertyPathInterface $propertyPath, mixed $value): void {