File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,8 @@ public static function toEvent(string $event): ?FSEvent
2626            $ date  = Carbon::parse ($ matches [static ::DATE ]);
2727            $ path  = $ matches [static ::PATH ];
2828            $ events  = explode ('  ' , $ matches [static ::EVENTS ]);
29-             $ events  = array_sort (array_intersect (FSEvent::getPossibleTypes (), $ events ), SORT_ASC );
29+             $ events  = array_intersect (FSEvent::getPossibleTypes (), $ events );
30+             asort ($ events , SORT_ASC );
3031
3132            return  new  FSEvent ($ date , $ path , $ events );
3233        }
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ public function testObjectIsCorrect()
1616        $ date  = Carbon::parse ('Mon Dec 31 01:18:34 2018 ' );
1717        $ path  = '/Some/Path/To/File/File.php ' ;
1818        $ events  = explode ('  ' , 'Renamed OwnerModified IsFile ' );
19-         $ events  = array_sort (array_intersect (FSEvent::getPossibleTypes (), $ events ), SORT_ASC );
19+         $ events  = array_intersect (FSEvent::getPossibleTypes (), $ events );
20+         asort ($ events , SORT_ASC );
2021        $ event  = new  FSEvent ($ date , $ path , $ events );
2122
2223        $ this  ->assertTrue (array_diff ($ event ->getTypes (), [FSEvent::Renamed, FSEvent::OwnerModified]) === []);
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments