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

766 Commits

Author SHA1 Message Date
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
Pierre Rudloff
1a873d72e6
Allow useHtmlVarDumper() on ExceptionsCollector (#464) 2021-06-19 19:09:02 +02:00
Pierre Rudloff
7602079356
Add support for PSR-3 message placeholders (#465) 2021-06-19 19:08:10 +02:00
Pierre Rudloff
150ef8d8a3
Add Drupal module (#470) 2021-06-19 19:07:37 +02:00
Nicola Galgano
001da347e6
add Joomla (#468) 2021-03-10 12:21:49 +01:00
Ricardo Boss
710c817b9b
New implementation of dump() in SwiftLogCollector (#416)
* Fix maximebf/php-debugbar#265

* Updated changelog
2021-02-25 08:04:02 +01:00
n0x073
6d51ee9e94
PHP 8.0: TraceablePDO adding query arguments (#460)
* php 8 fix

* Update TraceablePDO.php
v1.16.5
2020-12-07 12:07:24 +01:00
Barry vd. Heuvel
c86c717e4b
Update README.md v1.16.4 2020-12-07 11:48:48 +01:00
Barry vd. Heuvel
6d4195c6af
Delete .travis.yml 2020-12-07 11:47:53 +01:00
Barry vd. Heuvel
ae942fd21d
Create run-tests.yml for Github Actions (#461)
* Create run-tests.yml

* Update FileStorageTest.php
2020-12-07 11:47:36 +01:00
Witold Wasiczko
9544e0bf2a
Test on PHP 8 (#456)
* Test on PHP 8

* Fix tests
2020-12-07 11:39:43 +01:00
Witold Wasiczko
230f4ad6d8
Test on stable php 7.4 (#455) 2020-11-01 12:33:27 +01:00
Barry vd. Heuvel
a5ae65a123
Update composer.json 2020-08-28 09:35:51 +02:00