Skip to content

Commit

Permalink
Merge pull request #31 from b1rdex/php8-compat
Browse files Browse the repository at this point in the history
Php 8 compatibility
  • Loading branch information
ddtraceweb authored Jan 22, 2021
2 parents b90515f + e3a27db commit d5ce945
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 10 deletions.
37 changes: 30 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion lib/SmtpValidatorEmail/ValidatorEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d5ce945

Please sign in to comment.