diff --git a/src/Services/RecordSerializerServiceFactory.php b/src/Services/RecordSerializerServiceFactory.php index 620ebc6..eb22e7e 100644 --- a/src/Services/RecordSerializerServiceFactory.php +++ b/src/Services/RecordSerializerServiceFactory.php @@ -29,7 +29,7 @@ public function __construct(Registry\PromisingRegistry $registry) public static function create(): Closure { return function () { - new RecordSerializer(static::$registry); + return new RecordSerializer(static::$registry); }; } }