1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

652 Commits

Author SHA1 Message Date
erikn69
c13bd51cdb
fix formatDuration NaNμs on timeline widget (#569) 2024-02-10 10:56:34 +01:00
Barry vd. Heuvel
7e0ef13788
Bump dev-alias to 1.20 2024-02-10 10:55:39 +01:00
erikn69
cb11a0120b
Update interpolate on MessagesCollector (#572) 2024-02-10 10:55:11 +01:00
kriss
bfa8941060
Fix sort (#527) 2024-02-10 10:54:03 +01:00
erikn69
3ade312b58
preload formatter, avoids unexpected jumps on timeline (#568) 2024-02-10 10:53:17 +01:00
erikn69
bd42d88cd8
fix highlighted-line emphasis on codeblock (#565) 2024-02-10 10:52:44 +01:00
erikn69
5c355755f5
fix editor ajax template links (#570) 2024-02-10 10:49:57 +01:00
erikn69
34462a1ee9
Create ObjectCountCollector for count class/objects (#571)
* Create ObjectCountCollector for count class/objects

* Added ObjectCountCollector demo
2024-02-10 10:46:40 +01:00
v-noskov
8db056271d
Update dependencies for Symfony 7 (#589) 2024-01-25 19:41:03 +01:00
erikn69
27b3c2f234
ci: Use GitHub Actions V4 (#573) 2023-10-12 18:09:55 +02:00
Pedro Xavier
0d65147743
Fix code block in docs (#580) 2023-10-12 18:09:00 +02:00
erikn69
03dd40a182
Fix PHP 8.2 deprecations (#579) v1.19.1 2023-10-12 10:10:52 +02:00
erikn69
376ff32ee5
fix XSS in timeline (#567) 2023-09-22 13:01:00 +02:00
William Desportes
30f65f18f7
Fix class name missing full import (#540) v1.19.0 2023-09-19 21:53:10 +02:00
parallels999
29de66d4ef
HtmlVariableList support html on keys (#539) 2023-09-19 21:52:29 +02:00
parallels999
27c3cc05ed
Add custom trace formatter helper (#556)
* Add custom trace formatter helper

* Fix

* Add string trace helper on ExceptionsCollector
2023-09-19 21:51:44 +02:00
erikn69
1d87377810
(fix) set memory baseline on MemoryCollector (#559)
* set memory baseline on MemoryCollector

* Rename method

---------

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2023-09-19 21:48:23 +02:00
Yannik Sembritzki
ab33d08b02
Get rid of inline styles in widgets.js resulting in csp errors (#564) 2023-09-19 17:37:25 +02:00
erikn69
aafb756575
(feat) memory measure option (#558) 2023-09-19 17:10:23 +02:00
angeljqv
47abaeaa6d
add addXdebugReplacements option (#552) 2023-09-19 17:04:57 +02:00
erikn69
ec7d1ae890
Remove xdebug replacements on previews (#542) 2023-09-19 17:03:05 +02:00
erikn69
1b1419202f
Early return when no file string (#549) 2023-09-19 17:02:06 +02:00
erikn69
fdc4eec1f5
ignore demos vendor (#557) 2023-09-19 16:38:23 +02:00
erikn69
8eed152a9f
Fix pdo demo (#560) 2023-09-19 16:22:47 +02:00
Yannik Sembritzki
3395b7f6e8
Fix content security policy by upgrading jquery (fixes #529) (#561) 2023-09-19 16:05:27 +02:00
Yannik Sembritzki
61d4cad24b
Fix content security policy failure due to <script> tags without nonce generated by HtmlDumper (#563) 2023-09-19 16:04:51 +02:00
erikn69
1bee671914
(fix) Stop event propagation on editor link click (#550) 2023-09-09 01:01:51 +02:00
erikn69
8f6045d465
Add SymfonyMailCollector (#554)
* Add SymfonyMailCollector

* add examples for SymfonyMailCollector
2023-09-09 00:00:50 +02:00
erikn69
17ec0485bd
ci: Use GitHub Actions V3 (#553) 2023-08-27 15:34:49 +02:00
erikn69
8ed07eb4f0
Support editors when php.ini not available (#543) 2023-08-18 19:41:05 +02:00
erikn69
48c36d158b
Fix multiple replacement on the same path (#541) 2023-08-18 19:40:10 +02:00
Yağızhan
ae41159aa0
Update README.md (#535) 2023-08-18 19:38:24 +02:00
erikn69
bd269abe69
Fix link highlight on hover (#545) 2023-08-18 19:37:34 +02:00
erikn69
847216e605
bump jquery to v3.7.1 (#548) 2023-08-18 19:37:15 +02:00
Stefan Schramm
dff80cdb1c
Fix PHP 8.2 deprecations (#531)
* Fix deprecation: Use of "parent" in callables is deprecated

* Fix deprecations in tests

Creation of dynamic properties is deprecated since php 8.2
2023-08-18 19:36:53 +02:00
erikn69
4a2075b7ce
bump highlitght.js to v11.8.0 (#547) 2023-08-18 19:36:21 +02:00
Razvan Aurariu
293d02c78f
Fix when using RedisCluster (#533) 2023-04-30 07:43:14 +02:00
kstephensop
ea5bfc41e5
Add initial values to traceable PDO array_reduce() (#523)
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.
2023-02-06 16:35:37 +01:00
Joyce Babu
17dcf3f6ed
fix: preparedId is nullable (#516) v1.18.2 2023-02-04 16:27:00 +01:00
Danilo Pinotti
cd5e33f3cd
Fix event listener when url is object (#519) 2023-02-04 16:26:33 +01:00
Barry vd. Heuvel
1c2a5300cc
Update run-tests.yml (#515) 2022-10-31 14:35:10 +01:00
Feras El-Sharif
297ed7498a
[Feat]: Resource: widgets: templates-files:handel editor link for view list (#513) 2022-10-31 14:34:01 +01:00
Erős Ákos
0bb86588c1
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.
2022-10-31 14:32:38 +01:00
Didier Raboud
2be80e7b3a
Always provide htmlentities with a string, for PHP8.1 deprecation purposes (#503) 2022-10-31 14:32:22 +01:00
Bruce Wells
1386fe5c4f
Php8 1 fixes (#497)
* 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>
2022-10-31 14:31:43 +01:00
Tadhg Boyle
fd43dfb084
Fix random instances of SQL queries having params repeated (#505)
* Fix random instances of SQL queries having params repeated

* Add test
2022-10-31 14:26:03 +01:00
Jesper Noordsij
4458e2b164
Add properties to prevent dynamic creation in DataFormatter class (#507) 2022-10-31 14:25:07 +01:00
Vincent Reitz
c7496b7856
fix monolog 3 compat (#506) 2022-10-31 14:24:56 +01:00
Alius
477ed030cc
Search input aria-label (#511)
* search input aria-label

* search input placeholder

Co-authored-by: alius <alius.s@kryptis.lt>
2022-10-31 14:24:41 +01:00
Simon Bennett
22be9b9d29
Temporary annotations for PHP 8.1 compatibility (#512) 2022-10-31 14:24:27 +01:00