function badValue($argName, $typeName, $value, $line, $column, $errors = null) { $realErrors = !$errors ? ["Expected type \"{$typeName}\", found {$value}."] : $errors; return FormattedError::create(ArgumentsOfCorrectType::badValueMessage($argName, $typeName, $value, $realErrors), [new SourceLocation($line, $column)]); }
function badValue($argName, $typeName, $value, $line, $column) { return FormattedError::create(ArgumentsOfCorrectType::badValueMessage($argName, $typeName, $value), [new SourceLocation($line, $column)]); }