diff --git a/.travis.yml b/.travis.yml index 2025442..e217a88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,15 +1,38 @@ language: php -php: - - 5.4 - - 5.5 - - 5.6 - - 7.0 - - 7.1 +jobs: + include: + - name: PHP 5.4 + php: 5.4 + dist: trusty + - name: PHP 5.5 + php: 5.5 + dist: trusty + - name: PHP 5.6 + php: 5.6 + dist: xenial + - name: PHP 7.0 + php: 7.0 + dist: xenial + - name: PHP 7.1 + php: 7.1 + dist: bionic + - name: PHP 7.2 + php: 7.2 + dist: bionic + - name: PHP 7.3 + php: 7.3 + dist: bionic + - name: PHP 7.4 + php: 7.4 + dist: bionic + - name: PHP 8.0 + php: 8.0 + dist: bionic before_script: - composer self-update - - composer install --dev --prefer-source + - composer install --dev script: ./vendor/bin/phpunit -c lib/ --coverage-text diff --git a/lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php b/lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php index 69e92da..fa8d619 100644 --- a/lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php +++ b/lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php @@ -36,11 +36,11 @@ class ValidatorInitHelper{ protected $options = array(); /** - * @param array|String $emails + * @param array|string $emails * @param $sender * @param array $options */ - public function init($emails = array(), $sender, $options = array()) { + public function init($emails, $sender, $options = array()) { $defaultOptions = array( 'domainMoreInfo' => false, 'delaySleep' => array(0), diff --git a/lib/SmtpValidatorEmail/ValidatorEmail.php b/lib/SmtpValidatorEmail/ValidatorEmail.php index f8357bc..5e18998 100644 --- a/lib/SmtpValidatorEmail/ValidatorEmail.php +++ b/lib/SmtpValidatorEmail/ValidatorEmail.php @@ -48,7 +48,7 @@ class ValidatorEmail extends ValidatorInitHelper * is invalid, but it might not, depending on your use case, set the * value appropriately. */ - public function __construct($emails = array(), $sender, $options = array()) + public function __construct($emails, $sender, $options = array()) { $this->statManager = new StatusManager(); $this->init($emails,$sender,$options);