function foo1 in Coder 8.3
Same name and namespace in other branches
Test function one.
Deprecated
in drupal:8.5.0 and is removed from drupal:9.0.0. Use bar() instead.
See also
https://www.drupal.org/node/123
File
- tests/
Drupal/ Semantics/ FunctionTriggerErrorUnitTest.2.inc, line 15 - Example code for strict deprecated FunctionTriggerError sniff test.
Code
function foo1() {
// This conforms the strict version of the trigger_error deprecation standard.
@trigger_error('Function foo1() is deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use bar() instead. See https://www.drupal.org/node/123', E_USER_DEPRECATED);
}