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); }