return;
}
- 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');
}
return Isbn::INVALID_CHARACTERS_ERROR;
}
- $length = strlen($isbn);
+ $length = \strlen($isbn);
if ($length < 13) {
return Isbn::TOO_SHORT_ERROR;