You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHP version: >=8.1
Symfony version: (probably) any with dependes on PHP>=8.1
Sent HTTP request to my service with no header Content-type. Testing in dev (or test) mode with debug disabled.
And have error Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vendor/symfony/web-profiler-bundle/EventListener/WebDebugToolbarListener.php on line 124
How to reproduce
Set environments:
APP_ENV=dev
APP_DEBUG=false
WebProfilerBundle enabled and collects data
Send HTTP request to any endpoint with no Content-type header
…t null in dev environment with no debug (alexbuyanow)
This PR was squashed before being merged into the 5.4 branch.
Discussion
----------
[WebProfilerBundle] Fix error in case of 'Content-Type' set null in dev environment with no debug
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix#50977
| License | MIT
| Doc PR | -
Commits
-------
6faed31 [WebProfilerBundle] Fix error in case of 'Content-Type' set null in dev environment with no debug
Symfony version(s) affected
6.*
Description
PHP version: >=8.1
Symfony version: (probably) any with dependes on PHP>=8.1
Sent HTTP request to my service with no header
Content-type
. Testing in dev (or test) mode with debug disabled.And have error
Deprecated: str_contains(): Passing null to parameter #1 ($haystack) of type string is deprecated in /var/www/vendor/symfony/web-profiler-bundle/EventListener/WebDebugToolbarListener.php on line 124
How to reproduce
WebProfilerBundle
enabled and collects dataContent-type
headerPossible Solution
Its working for me
But unfortunly not working
Additional Context
No response
The text was updated successfully, but these errors were encountered: