src/Validator/Scalar.php
public function isValid($value)
    {
        $this->resetMessages();

        $this->value = $value;

        if (!is_scalar($value)) {
            $this->addMessage();

            return false;
        }

        return true;
    }
public function isValid($value)
    {
        $this->resetMessages();

        $this->value = $value;

        if (!is_scalar($value)) {
            $this->addMessage();

            return false;
        }

        return true;
    }
{@inheritdoc}