File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ public function index(): Promise
147
147
$ packageKey = null ;
148
148
$ cacheKey = null ;
149
149
$ index = null ;
150
- foreach (array_merge ($ this ->composerLock ->packages , $ this ->composerLock ->{'packages-dev ' }) as $ package ) {
150
+ foreach (array_merge ($ this ->composerLock ->packages , ( array ) $ this ->composerLock ->{'packages-dev ' }) as $ package ) {
151
151
// Check if package name matches and version is absolute
152
152
// Dynamic constraints are not cached, because they can change every time
153
153
$ packageVersion = ltrim ($ package ->version , 'v ' );
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public function xdependencies(): array
169
169
return [];
170
170
}
171
171
$ dependencyReferences = [];
172
- foreach (array_merge ($ this ->composerLock ->packages , $ this ->composerLock ->{'packages-dev ' }) as $ package ) {
172
+ foreach (array_merge ($ this ->composerLock ->packages , ( array ) $ this ->composerLock ->{'packages-dev ' }) as $ package ) {
173
173
$ dependencyReferences [] = new DependencyReference ($ package );
174
174
}
175
175
return $ dependencyReferences ;
You can’t perform that action at this time.
0 commit comments