fix injectable factory

This commit is contained in:
Yuri Kuznetsov
2020-06-23 21:06:14 +03:00
parent d1ff4b0ede
commit 6eaab67081

View File

@@ -129,7 +129,7 @@ class InjectableFactory
} catch (\Throwable $e) {
$badClassName = $param->getType()->getName();
// this trick allows to log syntax errors
new $badClassName();
class_exists($badClassName);
throw new Error("InjectableFactory: " . $e->getMessage());
}
}