fix(synapsis): Include parameter name in untyped parameter error
This commit is contained in:
@@ -148,7 +148,7 @@ class Synapsis
|
||||
$paramType = $parameter->getType();
|
||||
if ($paramType === null) {
|
||||
// If no type is declared, and it's not optional, we cannot resolve it.
|
||||
throw new Exception('Untyped parameters expect at least a default value or must be optional.');
|
||||
throw new Exception("Untyped parameter '{$parameter}' expect at least a default value or must be optional.");
|
||||
}
|
||||
|
||||
if ($paramType->isBuiltin()) {
|
||||
|
||||
Reference in New Issue
Block a user