The interface method has already been deprecated, but if some code uses
the concrete type instead, the deprecation is not shown (by phpstorm),
so I think it's better to have this method tagged as well.
The "fix" for this deprecation is to simply use `get` instead of
`query`. Right now this will work 100% the same, but the goal is to slim
down the interface and only use what PSR-11 offers.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
return parent::has($id);
}
+ /**
+ * @deprecated 20.0.0 use \Psr\Container\ContainerInterface::get
+ */
public function query(string $name, bool $autoload = true) {
$name = $this->sanitizeName($name);