|
if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString()'))) {
|
|
if (!is_scalar($value) && !(is_object($value) && method_exists($value, '__toString()'))) {
|
|
throw new UnexpectedTypeException($value, 'string');
|
|
throw new UnexpectedTypeException($value, 'string');
|