nette/nette — Issue #415: DI\ContainerBuilder - line 338-340 - wrong exception
Author: jannemec
Created: 2011-12-15 07:29:57+00:00
State: open

$code .= PhpHelpers::formatArgs("if (!\$service instanceof $def->class) {\n"
. "\tthrow new Nette\\UnexpectedValueException(?);\n}\n",
array("Unable to create service '$name', value returned by factory is not $def->class type.")
);

má asi být
$code .= PhpHelpers::formatArgs("if (!\$service instanceof $def->class) {\n"
. "\tthrow new UnexpectedValueException(?);\n}\n",
array("Unable to create service '$name', value returned by factory is not $def->class type.")
);

UnexpectedValueException je standardní výjimka ...