We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fbc8f9 commit c257fa9Copy full SHA for c257fa9
src/DI/PhpGenerator.php
@@ -179,6 +179,11 @@ public function convertArguments(array $args): array
179
} else {
180
$val = ContainerBuilder::literal('$this->getService(?)', [$name]);
181
}
182
+ } elseif (
183
+ is_object($val)
184
+ && !$val instanceof Php\Literal && !$val instanceof \stdClass && !$val instanceof \UnitEnum
185
+ ) {
186
+ trigger_error(sprintf('Nette DI: suspicious dumping of objects %s when generating the container', $val::class));
187
188
});
189
return $args;
0 commit comments