mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-26 03:01:23 +02:00
fix: Fix FileStorage::find function (#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.
This commit is contained in:
@@ -62,7 +62,7 @@ class FileStorage implements StorageInterface
|
|||||||
|
|
||||||
//Sort the files, newest first
|
//Sort the files, newest first
|
||||||
usort($files, function ($a, $b) {
|
usort($files, function ($a, $b) {
|
||||||
return $a['time'] < $b['time'];
|
return $a['time'] <=> $b['time'];
|
||||||
});
|
});
|
||||||
|
|
||||||
//Load the metadata and filter the results.
|
//Load the metadata and filter the results.
|
||||||
|
Reference in New Issue
Block a user