Skip to content

*to* validator for SmsParams does not work #17

Closed
@DarkSnowCat

Description

@DarkSnowCat

Hi everybody,

looks like the validate method for the to field of the SmsParams does not recognize when the passed target numbers are an empty string. to(): method of SmsRules is checking for a string and not for an array as far as I can see.

// Setting up and testing params
$smsParams = new SmsParams($message, '');
$smsResource->validate($smsParams);

Should throw an exception?

Greetins Michael

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions