1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-05-02 13:05:53 +02:00
Michaël Jacobs fa8049c5b6
Fix warning on null query parameter (#722)
* Check if hljs has language (#699)

* Fix PHP 8 warning in `TracedStatement::getSqlWithParameters()` when null was bound

Since PHP 8.0, [built-in functions like `strtr()` will emit a warning when passing `null` to required string parameters](docs):

```
strtr(): Passing null to parameter #1 ($string) of type string is deprecated
```

This can happen when e.g. binding `PDO::PARAM_NULL` to your query.

[docs]: https://www.php.net/manual/en/migration81.deprecated.php#migration81.deprecated.core.null-not-nullable-internal

---------

Co-authored-by: Barry vd. Heuvel <barryvdh@gmail.com>
2025-02-07 20:05:01 +01:00
..
2024-11-22 14:56:48 +01:00