Validator::isInteger()

Assert that each specified variable is an integer.


Return

(DotenvValidator)


Source

File: vendor/vlucas/phpdotenv/src/Validator.php

    public function isInteger()
    {
        return $this->assertCallback(
            function ($value) {
                if ($value === null) {
                    return true;
                }

                return ctype_digit($value);
            },
            'is not an integer'
        );
    }