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
147147                $ packageKey  = null ;
148148                $ cacheKey  = null ;
149149                $ 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 ) {
151151                    // Check if package name matches and version is absolute 
152152                    // Dynamic constraints are not cached, because they can change every time 
153153                    $ packageVersion  = ltrim ($ package ->version , 'v ' );
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public function xdependencies(): array
169169            return  [];
170170        }
171171        $ 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 ) {
173173            $ dependencyReferences [] = new  DependencyReference ($ package );
174174        }
175175        return  $ dependencyReferences ;
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments