Commit 627f373
committed
bug symfony#59975 [HttpKernel] Only remove
This PR was merged into the 6.4 branch.
Discussion
----------
[HttpKernel] Only remove `E_WARNING` from error level during kernel init
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix symfony#59139
| License | MIT
This fixes symfony#59139 as mentioned in symfony#59139 (comment).
With PHP 8.4 there can currently be a huge console output spam showing the
> Implicitly marking parameter as nullable is deprecated, the explicit nullable type must be used instead
deprecation, depending on your installed packages. This is caused by the kernel completely overriding the PHP error level within `initializeContainer()`, which will cause _everything_ to be shown (except warnings) that is triggered during `include`.
The kernel should always adhere to the `error_reporting` level set by the environment - thus this PR fixes this issue by only removing the `E_WARNING` level from the `error_reporting` level when trying to silence the include failures while including the cache path during kernel init.
Commits
-------
89818d9 Only remove E_WARNING from error levelE_WARNING from error level during kernel init (fritzmg)1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
| 410 | + | |
| 411 | + | |
411 | 412 | | |
412 | 413 | | |
413 | 414 | | |
| |||
0 commit comments