Unverified Commit b449be6d authored by alexpott's avatar alexpott
Browse files

Issue #3116164 by Gábor Hojtsy: DeprecatedServicePropertyTrait should trigger...

Issue #3116164 by Gábor Hojtsy: DeprecatedServicePropertyTrait should trigger deprecation for Drupal 10 in Drupal 9
parent 0d66147d
......@@ -20,7 +20,7 @@ public function __get($name) {
if (isset($this->deprecatedProperties[$name])) {
$service_name = $this->deprecatedProperties[$name];
$class_name = static::class;
@trigger_error("The property $name ($service_name service) is deprecated in $class_name and will be removed before Drupal 9.0.0.", E_USER_DEPRECATED);
@trigger_error("The property $name ($service_name service) is deprecated in $class_name and will be removed before Drupal 10.0.0.", E_USER_DEPRECATED);
return \Drupal::service($service_name);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment