Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpKernel] Only removeE_WARNING from error level during kernel init#59975

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

fritzmg
Copy link
Contributor

@fritzmgfritzmg commentedMar 14, 2025
edited
Loading

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#59139
LicenseMIT

Thisfixes#59139 as mentioned in#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 withininitializeContainer(), which will causeeverything to be shown (except warnings) that is triggered duringinclude.

The kernel should always adhere to theerror_reporting level set by the environment - thus this PR fixes this issue by only removing theE_WARNING level from theerror_reporting level when trying to silence the include failures while including the cache path during kernel init.

@carsonbot

This comment was marked as resolved.

@fritzmgfritzmg changed the base branch from7.3 to6.4March 14, 2025 13:54
@alexandre-dauboisalexandre-daubois modified the milestones:7.3,6.4Mar 14, 2025
@carsonbotcarsonbot changed the titleOnly removeE_WARNING from error level during kernel init[HttpKernel] Only removeE_WARNING from error level during kernel initMar 14, 2025
@nicolas-grekas
Copy link
Member

Thank you@fritzmg.

fritzmg reacted with heart emoji

@nicolas-grekasnicolas-grekas merged commit627f373 intosymfony:6.4Mar 19, 2025
11 checks passed
@fritzmgfritzmg deleted the bugfix/only-silence-ewarning-additionally branchMarch 19, 2025 17:11
This was referencedMar 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

bin/console always outputs 'Deprecated:' notices to console; ignores env/flags/config to turn it off.
4 participants
@fritzmg@carsonbot@nicolas-grekas@alexandre-daubois

[8]ページ先頭

©2009-2025 Movatter.jp