* Set line default 1 on editor links
* Update HasXdebugLinks.php
* Update HasXdebugLinks.php
---------
Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
currently there is no way to see the raw "peak_usage" bytes in the output. I'd love to have that number available somewhere, but I couldn't figure out how to do that.
this change is the next best thing, as it allows us to override the default precision of "0", so we can get a little more granularity into the memory usage.
* normalize file paths on exceptions traces
* avoid trace string when there is trace html
* normalize file path on message `cannot open the file`
* fix
If the PDOTraceableDataCollector is enabled and no database calls
happen to be made in a request, PHP 8.1 emits a fatal error, e.g.,
```
<b>Fatal error</b>: Uncaught TypeError:
DebugBar\DataCollector\PDO\TraceablePDO::getAccumulatedStatementsDuration():
Return value must be of type float, null returned in
vendor/maximebf/debugbar/src/DebugBar/DataCollector/PDO/TraceablePDO.php:251
```
The same error occurs in getMemoryUsage() and getPeakMemoryUsage().
Adding an initial value of 0 to `array_reduce()` corrects the problem.
Corrects bug #522.
* 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.
* PHP 8.1 warning fixes
Added #[\ReturnTypeWillChange] or appropriate return values
Typed parameters where appropriate
* Fixing unit tests to run without warnings
* Update to more reasonable versions of PHP and PHPUnit (was missing PHPUnit 8)
* mb_check_encoding param 1 can not be null
* Fix SeekingData class for 8.1
* Update tests to not polute the temp directory
* Revert PHP contrant
* Tabs to spaces
* Use Symfony\Component\VarDumper\Cloner\Data\SeekingData instead of local backported version
Avoids Fatal error: Declaration of DebugBar\DataFormatter\VarDumper\SeekingData::seek($key) must be compatible with Symfony\Component\VarDumper\Cloner\Data::seek(string|int $key): ?static
Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>