Closed (duplicate)
Project:
Drupal core
Version:
9.4.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2018 at 10:29 UTC
Updated:
18 Dec 2021 at 16:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
andypostComment #3
borisson_I'm not sure we should do this, instead of throwing the notice, we could also thrown an exception.
Comment #4
andypost@borisson_ but this is the exception handler itself, that's why I think "masking" missing error mapping is enough, we can't predict what will came in
Comment #5
andypostActually the job of the function is to populate proper backtrace so own notices makes it corrupted
Comment #7
volegerComment #14
joshahubbers commentedI think the patch makes sense. You still add the right backtrace, you just add a notion that the error level supplied is not recognized.
This patch is modified to clarify that the error level is not recognized and fixed for 9.3.x
But this is also fixed in #3000229: Move error handlers to an Error class
Comment #15
joshahubbers commentedAfter another review, I suggest to close this one in favor of #3000229: Move error handlers to an Error class, to avoid duplicate issues.
This issue is fully addressed there, and that issue is much more a generic way to go.
On the other hand: the patch can be applied cleanly, and is a quick-fix improvement of the code imho, so if someone thinks this should be committed until the other issue is resolved, I can support that also.
Comment #16
joshahubbers commented