From 633a85249db8ee1ef28691bb332f4d7463172570 Mon Sep 17 00:00:00 2001 From: Andrey Postal Date: Fri, 21 Mar 2025 17:02:34 -0300 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8dc010a..1f6db9b 100644 --- a/README.md +++ b/README.md @@ -94,13 +94,13 @@ Also, if you have a property that is an array of other object, you can inform th This will work as a hint so the hydrator can instantiate the appropriate object. This works with enums as well. ```php -use \Andrey\PancakeObject\JsonItemAttribute; +use \Andrey\PancakeObject\Item; use \MyNamespace\MyOtherObj; // { "list": [ { "key": "value" } ] } class MyObject { /** @var MyOtherObj[] */ - #[JsonItemAttribute(type: MyOtherObj::class)] + #[Item(type: MyOtherObj::class)] public array $list; } ```