Skip to content

Commit a03b0ad

Browse files
committed
Fix for array_sort.
1 parent 731fe95 commit a03b0ad

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/HotReload/FSEventParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static function toEvent(string $event): ?FSEvent
2727
$path = $matches[static::PATH];
2828
$events = explode(' ', $matches[static::EVENTS]);
2929
$events = array_intersect(FSEvent::getPossibleTypes(), $events);
30-
asort($events, SORT_ASC);
30+
asort($events);
3131

3232
return new FSEvent($date, $path, $events);
3333
}

tests/HotReload/FSEventTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testObjectIsCorrect()
1717
$path = '/Some/Path/To/File/File.php';
1818
$events = explode(' ', 'Renamed OwnerModified IsFile');
1919
$events = array_intersect(FSEvent::getPossibleTypes(), $events);
20-
asort($events, SORT_ASC);
20+
asort($events);
2121
$event = new FSEvent($date, $path, $events);
2222

2323
$this->assertTrue(array_diff($event->getTypes(), [FSEvent::Renamed, FSEvent::OwnerModified]) === []);

0 commit comments

Comments
 (0)