Skip to content

Commit d5ce945

Browse files
authored
Merge pull request #31 from b1rdex/php8-compat
Php 8 compatibility
2 parents b90515f + e3a27db commit d5ce945

File tree

3 files changed

+33
-10
lines changed

3 files changed

+33
-10
lines changed

.travis.yml

+30-7
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
language: php
22

3-
php:
4-
- 5.4
5-
- 5.5
6-
- 5.6
7-
- 7.0
8-
- 7.1
3+
jobs:
4+
include:
5+
- name: PHP 5.4
6+
php: 5.4
7+
dist: trusty
8+
- name: PHP 5.5
9+
php: 5.5
10+
dist: trusty
11+
- name: PHP 5.6
12+
php: 5.6
13+
dist: xenial
14+
- name: PHP 7.0
15+
php: 7.0
16+
dist: xenial
17+
- name: PHP 7.1
18+
php: 7.1
19+
dist: bionic
20+
- name: PHP 7.2
21+
php: 7.2
22+
dist: bionic
23+
- name: PHP 7.3
24+
php: 7.3
25+
dist: bionic
26+
- name: PHP 7.4
27+
php: 7.4
28+
dist: bionic
29+
- name: PHP 8.0
30+
php: 8.0
31+
dist: bionic
932

1033
before_script:
1134
- composer self-update
12-
- composer install --dev --prefer-source
35+
- composer install --dev
1336

1437
script: ./vendor/bin/phpunit -c lib/ --coverage-text
1538

lib/SmtpValidatorEmail/Helper/ValidatorInitHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ class ValidatorInitHelper{
3636
protected $options = array();
3737

3838
/**
39-
* @param array|String $emails
39+
* @param array|string $emails
4040
* @param $sender
4141
* @param array $options
4242
*/
43-
public function init($emails = array(), $sender, $options = array()) {
43+
public function init($emails, $sender, $options = array()) {
4444
$defaultOptions = array(
4545
'domainMoreInfo' => false,
4646
'delaySleep' => array(0),

lib/SmtpValidatorEmail/ValidatorEmail.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ValidatorEmail extends ValidatorInitHelper
4848
* is invalid, but it might not, depending on your use case, set the
4949
* value appropriately.
5050
*/
51-
public function __construct($emails = array(), $sender, $options = array())
51+
public function __construct($emails, $sender, $options = array())
5252
{
5353
$this->statManager = new StatusManager();
5454
$this->init($emails,$sender,$options);

0 commit comments

Comments
 (0)