diff --git a/src/Generator/DataClassGenerator.php b/src/Generator/DataClassGenerator.php index c850769..0cfca79 100644 --- a/src/Generator/DataClassGenerator.php +++ b/src/Generator/DataClassGenerator.php @@ -183,7 +183,7 @@ private function dumpLoadersShape(array $batchedHooks, array $plansByFqcn, CodeG // which holds every batched hook in the operation, not just the subset a // single nested class consumes. Extras are typed wide; HookLoader's // covariant template params let any specific instantiation fit here. - $entries[] = sprintf('...>', $hookLoader); + $entries[] = sprintf('...>', $hookLoader); return sprintf("array{\n %s,\n}", implode(",\n ", $entries)); } diff --git a/tests/HooksBatched/Generated/Query/Test/Data.php b/tests/HooksBatched/Generated/Query/Test/Data.php index a3db2a5..9d42387 100644 --- a/tests/HooksBatched/Generated/Query/Test/Data.php +++ b/tests/HooksBatched/Generated/Query/Test/Data.php @@ -34,7 +34,7 @@ final class Data * findOrgPlan: HookLoader, * computeAccess: HookLoader, * findUserById: HookLoader, - * ...>, + * ...>, * } */ private readonly array $loaders; diff --git a/tests/HooksBatched/Generated/Query/Test/Data/Organization.php b/tests/HooksBatched/Generated/Query/Test/Data/Organization.php index 662cf2f..aae02fa 100644 --- a/tests/HooksBatched/Generated/Query/Test/Data/Organization.php +++ b/tests/HooksBatched/Generated/Query/Test/Data/Organization.php @@ -50,7 +50,7 @@ final class Organization * findOrgPlan: HookLoader, * computeAccess: HookLoader, * findUserById: HookLoader, - * ...>, + * ...>, * } $loaders */ public function __construct( diff --git a/tests/HooksBatched/Generated/Query/Test/Data/Organization/Repository.php b/tests/HooksBatched/Generated/Query/Test/Data/Organization/Repository.php index 1e898bf..efc889a 100644 --- a/tests/HooksBatched/Generated/Query/Test/Data/Organization/Repository.php +++ b/tests/HooksBatched/Generated/Query/Test/Data/Organization/Repository.php @@ -47,7 +47,7 @@ final class Repository * @param array{ * computeAccess: HookLoader, * findUserById: HookLoader, - * ...>, + * ...>, * } $loaders */ public function __construct(