1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-07-25 02:31:25 +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:
Erős Ákos
2022-10-31 14:32:38 +01:00
committed by GitHub
parent 2be80e7b3a
commit 0bb86588c1

View File

@@ -62,7 +62,7 @@ class FileStorage implements StorageInterface
//Sort the files, newest first
usort($files, function ($a, $b) {
return $a['time'] < $b['time'];
return $a['time'] <=> $b['time'];
});
//Load the metadata and filter the results.