Problem/Motivation

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

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Status: Active » Needs review

PR 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

  • jonathan1055 authored 1fe6495 on 8.x-3.x
    fix(FunctionTriggerError): Cater for variable interpolation strings (#...
arkener’s picture

Status: Needs review » Fixed

Merged, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

jonathan1055’s picture

Assigned: jonathan1055 » Unassigned

Thanks. Unassigning.