File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,15 @@ private function buildResources(array $resourcesYaml, string $path): void
75
75
$ resourceYaml = [$ resourceYaml ];
76
76
}
77
77
78
+ $ resourcesCount = isset ($ this ->resources [$ resourceName ]) ? count ($ this ->resources [$ resourceName ]) : 0 ;
78
79
foreach ($ resourceYaml as $ key => $ resourceYamlDatum ) {
79
80
if (null === $ resourceYamlDatum ) {
80
81
$ resourceYamlDatum = [];
81
82
}
82
83
83
84
try {
84
85
$ base = $ this ->buildExtendedBase ($ resourceYamlDatum );
85
- $ this ->resources [$ resourceName ][$ key ] = array_merge ($ base , [
86
+ $ this ->resources [$ resourceName ][$ resourcesCount + $ key ] = array_merge ($ base , [
86
87
'operations ' => $ this ->buildOperations ($ resourceYamlDatum , $ base ),
87
88
'graphQlOperations ' => $ this ->buildGraphQlOperations ($ resourceYamlDatum , $ base ),
88
89
]);
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public function create(string $resourceClass): ResourceMetadataCollection
60
60
}
61
61
}
62
62
63
- $ resourceMetadataCollection [$ i ] = $ resource ;
63
+ $ resourceMetadataCollection [] = $ resource ;
64
64
}
65
65
66
66
return $ resourceMetadataCollection ;
You can’t perform that action at this time.
0 commit comments