From 4b688350c69c88552640731e50967aee4d33de75 Mon Sep 17 00:00:00 2001 From: Romain Canon Date: Fri, 16 Feb 2024 16:35:15 +0100 Subject: [PATCH] doc: fix dynamic constructor attribute class --- docs/pages/how-to/use-custom-object-constructors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pages/how-to/use-custom-object-constructors.md b/docs/pages/how-to/use-custom-object-constructors.md index 57b5542c..14f3e44e 100644 --- a/docs/pages/how-to/use-custom-object-constructors.md +++ b/docs/pages/how-to/use-custom-object-constructors.md @@ -192,7 +192,7 @@ final class ClassWithInheritedStaticConstructor implements InterfaceWithStaticCo (new \CuyZ\Valinor\MapperBuilder()) ->registerConstructor( - #[\CuyZ\Valinor\Attribute\DynamicConstructor] + #[\CuyZ\Valinor\Mapper\Object\DynamicConstructor] function (string $className, string $value): InterfaceWithStaticConstructor { return $className::from($value); }