diff --git a/src/DI/Container.php b/src/DI/Container.php index d2398cb57..644eb9f5d 100644 --- a/src/DI/Container.php +++ b/src/DI/Container.php @@ -19,7 +19,7 @@ class Container { use Nette\SmartObject; - /** @var array user parameters */ + /** @var mixed[] user parameters */ public $parameters = []; /** @var string[] services name => type (complete list of available services) */ @@ -37,10 +37,10 @@ class Container /** @var object[] service name => instance */ private $instances = []; - /** @var array circular reference detector */ + /** @var array circular reference detector */ private $creating; - /** @var array */ + /** @var array */ private $methods; diff --git a/src/DI/ContainerBuilder.php b/src/DI/ContainerBuilder.php index 34d537549..f170e95d0 100644 --- a/src/DI/ContainerBuilder.php +++ b/src/DI/ContainerBuilder.php @@ -408,7 +408,7 @@ public static function literal(string $code, ?array $args = null): Nette\PhpGene public function formatPhp(string $statement, array $args): string { array_walk_recursive($args, function (&$val): void { - if ($val instanceof Statement) { + if ($val instanceof Nette\DI\Definitions\Statement) { $val = (new Resolver($this))->completeStatement($val); } elseif ($val instanceof Definition) {