Type hinting the DI methods and variables (#1201)

This commit is contained in:
Yağızhan authored and GitHub committed 2023-05-01 21:01:35 +03:00
1 parent a3369124ea
commit 950e4dccef
141 files changed
+470 -818

No files matched your search

+3 -9
View File
@@ -18,20 +18,14 @@ namespace Box\Mod\Support\Controller;
class Client implements \Box\InjectionAwareInterface
{
protected $di;
protected ?\Pimple\Container $di;
/**
* @param mixed $di
*/
public function setDi($di)
public function setDi(\Pimple\Container $di): void
{
$this->di = $di;
}
/**
* @return mixed
*/
public function getDi()
public function getDi(): ?\Pimple\Container
{
return $this->di;
}