From b9efc218522cb593430f7281d6eebd94c1b1fa3c Mon Sep 17 00:00:00 2001 From: Adriaan Zonnenberg Date: Wed, 2 Oct 2024 15:39:02 +0200 Subject: [PATCH] Add array type annotations on Cast interfaces --- src/Casts/Cast.php | 3 +++ src/Casts/IterableItemCast.php | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/Casts/Cast.php b/src/Casts/Cast.php index e3ba24469..1270f35c2 100644 --- a/src/Casts/Cast.php +++ b/src/Casts/Cast.php @@ -7,5 +7,8 @@ interface Cast { + /** + * @param array $properties + */ public function cast(DataProperty $property, mixed $value, array $properties, CreationContext $context): mixed; } diff --git a/src/Casts/IterableItemCast.php b/src/Casts/IterableItemCast.php index d89a107ac..127acb356 100644 --- a/src/Casts/IterableItemCast.php +++ b/src/Casts/IterableItemCast.php @@ -7,5 +7,8 @@ interface IterableItemCast { + /** + * @param array $properties + */ public function castIterableItem(DataProperty $property, mixed $value, array $properties, CreationContext $context): mixed; }