Closed (fixed)
Project:
Coder
Version:
8.x-3.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2020 at 14:23 UTC
Updated:
19 Dec 2020 at 09:57 UTC
Jump to comment: Most recent
The following code snippet (recently committed to 9.2 core) fails the current FunctionTriggerError sniff:
@trigger_error("StatementWrapper::\${$name} is deprecated in drupal:9.1.0 and will error in drupal:10.0.0. Access the client-level statement object via ::getClientStatement(). See https://www.drupal.org/node/3177488", E_USER_DEPRECATED);
Comments
Comment #2
jonathan1055 commentedPR https://github.com/pfrenssen/coder/pull/124
The first commit will fail the test, to demonstrate the problem.
I discovered this in core issue #3048495-111: Fix Drupal.Semantics.FunctionTriggerError coding standard
Comment #4
arkener commentedMerged, thanks!
Comment #6
jonathan1055 commentedThanks. Unassigning.