style(Synapsis): Wrap long exception message for readability

This commit is contained in:
2026-03-16 06:25:09 -03:00
parent 159da01d5c
commit b6baeef32f

View File

@@ -148,7 +148,9 @@ class Synapsis
$paramType = $parameter->getType(); $paramType = $parameter->getType();
if ($paramType === null) { if ($paramType === null) {
// If no type is declared, and it's not optional, we cannot resolve it. // If no type is declared, and it's not optional, we cannot resolve it.
throw new Exception("Untyped parameter '{$parameter}' 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()) { if ($paramType->isBuiltin()) {