Skip to content

[BUG] Exception thrown on valid input #3

Closed
@estebanthebad

Description

@estebanthebad

https://github.com/sms77io/php-client/blob/ec0339d72bcdfa930b80ab1c8cd2e2838b944d46/src/Validator/SmsValidator.php#L115

This code block throws an exception if the string consists of valid characters but solely of characters listed in SmsConstants::FROM_ALLOWED_CHARS. Because after the replace command the string will be empty and ctype_alnum() will return FALSE.

Metadata

Metadata

Assignees

No one assigned

    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