1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-16 21:08:34 +01:00

628 Commits

Author SHA1 Message Date
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
Jaanus Vapper
2f5f6293a2
Make logo act as close button (#451)
Co-authored-by: Jaanus Vapper <jaanus.vapper@ekspressdigital.eu>
2022-10-31 14:22:35 +01:00
PaolaRuby
ba0af68dd4
Update .gitattributes (#501) v1.18.1 2022-03-31 16:55:54 +02:00
rowhel95
c2e310320b
PHP 8.1 fix (#495)
* PHP 8.1 fix

* Use supported return types
2022-02-11 12:14:20 +01:00
beat
70e8062109
PHP 8.1 fix in DataFormatter.php for "Implicit conversion from float -INF to int loses precision" (#498)
This fixes a PHP 8.1 bug "Deprecated: Implicit conversion from float -INF to int loses precision in vendor/maximebf/debugbar/src/DebugBar/DataFormatter/DataFormatter.php
2022-02-11 12:06:03 +01:00
Barry vd. Heuvel
59c1797cc6
Update composer.json 2022-02-10 17:08:08 +01:00
Nicola Galgano
0d44b75f3b
php 8.1 deprecations (#494)
* php 8.1 deprecations

* php 8.1 deprecations

* Update DataFormatter.php
v1.18.0
2021-12-27 19:49:48 +01:00
Armin Linzbauer
d7a9c22602
Add Support for symfony/var-dumper ^6 (#492)
* Update Dependencies for Symfony 6

* Document Added Support for  symfony/var-dumper ^6
2021-12-21 19:16:01 +01:00
Sam Geo
f9b837f600
Adds October CMS to framework list (#490) 2021-12-15 14:53:16 +01:00
Pierre Rudloff
6b175051df
Wrong variable name in docblock (#463) 2021-12-12 18:13:24 +01:00
Sem Schilder
12a1eef59b
Dont use null where string is expected (#489)
Quickfix for PHP 8.1 compatibility
2021-12-12 12:55:31 +01:00
Sem Schilder
14bdc78c0c
Draft: Support twig namespaces (#479)
* Add Twig 1, 2 and 3 as required dependency
- Latest safe Twig 1 version
- Latest safe Twig 2 version
- Latest safe Twig 3 version

* Add ext-json as a requirement

* Add namespacedTwigProfileCollector

* Deprecated old class

* Update docs for PHP/Twig

* Remove incompatibility

* Update namespace

* Update composer.json

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2021-12-12 11:48:02 +01:00
Reinaldo Deprera
e8ac3499af
Add #[ReturnTypeWillChange] attribute to suppress deprecation warning… (#481)
* Add #[ReturnTypeWillChange] attribute to suppress deprecation warnings and fatal error

Error occurs on php 7.4 >=

* Same in other 4 methods #[\ReturnTypeWillChange]

Add #[\ReturnTypeWillChange] in other 4 methods to avoid E_DEPRECATED or E_FATAL (php 7.4 >=)
v1.17.3
2021-10-19 14:33:27 +02:00
Sergiy Petrov
3541f09f09
Update run-tests.yml (#487) v1.17.2 2021-10-18 11:39:00 +02:00
erikn69
fb428365f2
Support psr/log:^2.0,^3.0 (#486)
* Support psr/log:^2.0,^3.0

* Update FileStorageTest.php

Co-authored-by: Erik Niebla <ep_niebla@hotmail.com>
Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2021-10-18 11:38:31 +02:00
fcolecumberri
22cfd56c87
updated psr/log acceptable mayor version (#485) 2021-10-18 11:36:20 +02:00
Alexander Zhuravlev
3a85e5bf19
RedisStorage: Introduced support of php-redis module. Fixed clear() method (#480)
* RedisStorage: Introduced support of php-redis module. Fixed clear() method

* Fixed sorting order for RedisStorage to show newest requests on top

* Revert BC breaking changes
2021-10-14 12:17:12 +02:00
Barry vd. Heuvel
0a3532556b
Check log messages before interpolate (#477) v1.17.1 2021-08-01 11:19:02 +02:00
Barry vd. Heuvel
4ef8e359d9
Fix vardumper #474 (#475) v1.17.0 2021-07-27 07:47:57 +02:00
Barry vd. Heuvel
678a54a502
Update composer.json 2021-06-22 10:04:48 +02:00
Barry vd. Heuvel
cb4cf6d0f4
Update README.md 2021-06-22 10:04:06 +02:00
Barry vd. Heuvel
b12bbde6f5 Test CSP Nonce 2021-06-22 10:01:30 +02:00
Barry vd. Heuvel
87e627ad1a Fix tests 2021-06-22 09:56:39 +02:00
Igor Santos
d848222fd5
Makes the PDO wrapper transparent (#407)
* Making PDO wrapper transparent

* Fix check for instance type before enveloping PDO
2021-06-22 09:12:03 +02:00
Barry vd. Heuvel
2a71666f69
Add CSP support to Javascript renderer (#439)
* Add CSP support to Javascript renderer

* Use parameters to set CSP nonce
2021-06-21 09:26:59 +02:00