Closed (fixed)
Project:
Coder
Version:
8.3.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
3 Jan 2024 at 13:23 UTC
Updated:
1 Mar 2024 at 12:59 UTC
Jump to comment: Most recent
Comments
Comment #2
spokjeComment #3
spokjehttps://github.com/pfrenssen/coder/pull/218
Comment #4
klausiThanks, just one minor comments from me.
Could this disrupt custom Drupal projects where developers use trigger_error() for deprecations in their own project? Maybe this is not common. Developers can also disable individual rules, so there are workarounds in such a case.
In my projects we don't use trigger_error() and mostly rely on custom PHPStan rules that flag deprecated function invocations.
Comment #5
spokjeThanks for the review @Klausi!
Added fixer and addressed your comments.
If and when core turns this rule on it would.
Found 5 occurrences with http://codcontrib.hank.vps-private.net/search?text=E_USER_DEPRECATED&fil...
One of them (bat) even has a convenient
// phpcs:ignorestraight above it.So I would say not very common indeed, and as you said disable-able if no @ there on purpose.
Comment #7
klausiOk, then let's do this! Thanks a lot for your patience and rerolling.
Comment #8
klausiForgot credits.