We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d95098f commit e25f51eCopy full SHA for e25f51e
1 file changed
DIContainer.php
@@ -66,7 +66,7 @@ class DIContainer implements DIContainerInterface
66
public const EXCLUDE = 'exclude';
67
public const NAMED = 'named';
68
69
- protected ?DIReflector $reflection;
+ protected DIReflector $reflection;
70
private array $inProgress = [];
71
72
private array $singletons = [];
@@ -91,13 +91,15 @@ public function __clone()
91
92
public function __destruct()
93
{
94
- $this->reflection = null;
95
$this->singletons = [];
96
$this->bindings = [];
97
$this->exclude = [];
98
$this->named = [];
99
}
100
+ /**
101
+ * @throws \ReflectionException
102
+ */
103
public function __invoke(callable $callable, array $arguments = [])
104
105
return \call_user_func_array($callable, $this->reflection->processMethodArguments(
0 commit comments