Closed (fixed)
Project:
Drupal core
Version:
10.4.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Aug 2024 at 16:41 UTC
Updated:
3 Oct 2024 at 02:26 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #3
arunkumarkAs per the Stackoverflow discussion
So, a simple replacement of E_STRICT with E_ALL is enough to handle the deprecation.
Reference:
https://stackoverflow.com/questions/32930464/what-is-the-difference-betw...
https://stackoverflow.com/questions/1638238/whats-the-point-of-e-all-e-s...
Comment #4
andypostNice so only MR needed and update issue summary with proposed changes
Comment #6
arunkumarkComment #7
andypostLooking back at SF changes, I thing we need to populate
E_STRICTindrupal_error_levels()for PHP before 8.4Comment #8
smustgrave commentedFor the check @andypost mentioned. Sounds like it couldn't hurt to have.
Comment #9
andypostI checked usage of
drupal_error_levels()and it is mostly unused, so I think it does not need to add the deprecated and unused typeComment #10
andypostAdded CR and updated IS, also removed comment as it useless now
Comment #11
smustgrave commentedRemoval didn't break anything so probably doesn't need a deprecation or anything. Looks good.
Comment #14
catchHad a think about whether the return type of drupal_error_levels() changing needed a CR. Modules do call it, but they only use it for the mapping, not referencing E_STRICT directly at all, so I think it's fine to just remove as 'dead code'.
Committed/pushed to 11.x, thanks!
Comment #15
andypostMaybe we can backport it to 10.4.x?
Comment #16
andypostIt was finally commited so expect in RC1
Comment #17
andypostNeeds backport
Comment #19
andypostThank you!
Comment #20
arunkumark@andypost hope the backport for 10.4.x is done. I verified source code the changes are available in latest pull.