@psalm-pure
string $value:
string $message:
InvalidArgumentException
public static function notWhitespaceOnly($value, $message = '') { if (\preg_match('/^\\s*$/', $value)) { static::reportInvalidArgument(\sprintf($message ?: 'Expected a non-whitespace string. Got: %s', static::valueToString($value))); } }