Skip to content

Commit

Permalink
doc: fix dynamic constructor attribute class
Browse files Browse the repository at this point in the history
  • Loading branch information
romm committed Feb 16, 2024
1 parent 972e657 commit 4b68835
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/how-to/use-custom-object-constructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4b68835

Please sign in to comment.