add container generics type hint

This commit is contained in:
sunxyw
2022-04-05 01:06:47 +08:00
committed by sunxyw
parent 9f7ebceeb9
commit 90290bee94
4 changed files with 14 additions and 11 deletions

View File

@@ -91,9 +91,10 @@ interface ContainerInterface extends PsrContainerInterface
/**
* 获取一个绑定的实例
*
* @template T
* @param string $abstract 类或接口名
* @param array $parameters 参数
* @return mixed 实例
* @return T 实例
*/
public function make(string $abstract, array $parameters = []);