Skip to content

Empty phone number fields cause exception in Craft CMS 5.9.12 #121

@thasmo

Description

@thasmo

craft\helpers\StringHelper::stripWhitespace(): Argument #1 ($str) must be of type string, null given, called in /var/www/html/vendor/presseddigital/linkit/src/models/Phone.php on line 35

Image

$this->value seems to be null for some reason. I assume this value was an empty string in prior Craft CMS versions, or something.

This might be an unintended BC break in Craft 5.9 after all, maybe.

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