Subject: | Data::Domain::String accepts non-scalar data |
With the following code:
my $errors = String()->inspect({});
$errors will be undef. It ought to be an INVALID error message.
Code like the following should be added near the top of Data::Domain::String::_inspect:
not ref $data
or return $self->msg(INVALID => 'non-string data of type '.ref($data));
-TimK