Closed (outdated)
Project:
Drupal core
Version:
main
Component:
options.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2023 at 07:57 UTC
Updated:
20 Apr 2026 at 17:55 UTC
Jump to comment: Most recent
Comments
Comment #3
lauriiiComment #4
poker10 commentedThere seems to be other non-silenced deprecation message, for example
Drupal\Component\Assertion\Handle:Wouldn't it be better to expand the scope to search/fix also others, if there are any left? Or is it OK to fix just this one? Thanks!
Comment #5
smustgrave commentedThere are actually dozens of these, several in the stream wrapper folder. Not sure if we want to do all at once but definitely think we could group a few together.
Always wondered why we request deprecation tests and now I know :) haha
Comment #6
spokjeGot nerd-sniped and wondered if coder could help us here.
I think it can: https://git.drupalcode.org/issue/drupal-3390360/-/jobs/481429
So I believe there are only two, both mentioned in this issue.
Those are unsilenced
trigger_error('yadada', E_USER_WARNING);which is ok, we're after unsilencedtrigger_error('blahblah', E_USER_DEPRECATED);, the difference being the last argumentE_USER_DEPRECATED.Now this coder change is a complete hack, would need a separate rule and tests, but it's basically a small change: https://github.com/pfrenssen/coder/compare/8.3.x...Boegie:coder:mustsupr...
Should we open an issue in coder, add an actual polished rule with tests and solve both (then) PHPCS fails when that rule is approved, committed, coder is released, coder version is bumped in core?
Comment #7
spokjeOpened #3412078: Add sniff for unsilenced deprecation warnings, just because the code was basically already there.
Comment #9
spokje#3412078: Add sniff for unsilenced deprecation warnings just got committed, we're waiting for the next release of coder
Comment #18
smustgrave commented#3443206: Remove deprecated code from search and options modules deprecations here were removed before D11 so believe this can be closed out. Am assigning credit for the initial work though.