Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 23, 2023
1 parent 5fcc06d commit 4c2164e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/DI/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
Expand All @@ -37,10 +37,10 @@ class Container
/** @var object[] service name => instance */
private $instances = [];

/** @var array circular reference detector */
/** @var array<string, true> circular reference detector */
private $creating;

/** @var array */
/** @var array<string, string|\Closure> */
private $methods;


Expand Down
2 changes: 1 addition & 1 deletion src/DI/ContainerBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4c2164e

Please sign in to comment.