diff --git a/src/Controller/Controller.php b/src/Controller/Controller.php index 7d2486dd288..9529a07bd2f 100644 --- a/src/Controller/Controller.php +++ b/src/Controller/Controller.php @@ -348,6 +348,7 @@ public function __get($name) ]; if (isset($deprecated[$name])) { $method = $deprecated[$name]; + deprecationWarning(sprintf('Controller::$%s is deprecated. Use $this->%s() instead.', $name, $method)); return $this->{$method}(); } @@ -390,6 +391,7 @@ public function __set($name, $value) ]; if (isset($deprecated[$name])) { $method = $deprecated[$name]; + deprecationWarning(sprintf('Controller::$%s is deprecated. Use $this->%s() instead.', $name, $method)); $this->{$method}($value); return;