Skip to content

Commit 0bb8658

Browse files
authored
fix: Fix FileStorage::find function (php-debugbar#510)
* fix: Fix FileStorage::find function Fix FileStorage::find function usort callback function to return int instead of bool, because after PHP8 bool return value for the callback function is not supported. * fix: Fix FileStorage::find function Fix FileStorage::find function usort callback function to return int instead of bool, because after PHP8 bool return value for the callback function is not supported.
1 parent 2be80e7 commit 0bb8658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DebugBar/Storage/FileStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function find(array $filters = array(), $max = 20, $offset = 0)
6262

6363
//Sort the files, newest first
6464
usort($files, function ($a, $b) {
65-
return $a['time'] < $b['time'];
65+
return $a['time'] <=> $b['time'];
6666
});
6767

6868
//Load the metadata and filter the results.

0 commit comments

Comments
 (0)