diff --git a/src/Attributes/DefaultCast.php b/src/Attributes/DefaultCast.php index b6f196f6..47cc76a9 100644 --- a/src/Attributes/DefaultCast.php +++ b/src/Attributes/DefaultCast.php @@ -48,6 +48,6 @@ public function accepts(ReflectionProperty $property): bool public function resolveCaster(): Caster { - return new $this->casterClass; + return new $this->casterClass(); } }