Skip to content

Commit a2f61eb

Browse files
authored
Merge pull request #292 from jeremykendall/develop
create 5.7.2 release
2 parents d9775db + 0000075 commit a2f61eb

File tree

5 files changed

+39
-21
lines changed

5 files changed

+39
-21
lines changed

.travis.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,46 +7,42 @@ matrix:
77
include:
88
- php: 7.2
99
env:
10-
- COLLECT_COVERAGE=false
1110
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
1211
- RUN_PHPSTAN=false
1312
- VALIDATE_CODING_STYLE=false
1413
- php: 7.2
1514
env:
16-
- COLLECT_COVERAGE=true
1715
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
18-
- RUN_PHPSTAN=true
19-
- VALIDATE_CODING_STYLE=true
16+
- RUN_PHPSTAN=false
17+
- VALIDATE_CODING_STYLE=false
2018
- php: 7.3
2119
env:
22-
- COLLECT_COVERAGE=false
2320
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
2421
- RUN_PHPSTAN=false
2522
- VALIDATE_CODING_STYLE=false
2623
- php: 7.3
2724
env:
28-
- COLLECT_COVERAGE=true
2925
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
30-
- RUN_PHPSTAN=true
31-
- VALIDATE_CODING_STYLE=true
26+
- RUN_PHPSTAN=false
27+
- VALIDATE_CODING_STYLE=false
3228
- php: 7.4
3329
env:
34-
- COLLECT_COVERAGE=false
3530
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --prefer-lowest --prefer-stable"
3631
- RUN_PHPSTAN=false
3732
- VALIDATE_CODING_STYLE=false
3833
- php: 7.4
3934
env:
40-
- COLLECT_COVERAGE=true
4135
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
4236
- RUN_PHPSTAN=true
4337
- VALIDATE_CODING_STYLE=true
4438
- php: nightly
4539
env:
46-
- COLLECT_COVERAGE=false
47-
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source --ignore-platform-reqs"
40+
- COMPOSER_ARGS="--no-interaction --no-suggest --prefer-source"
4841
- RUN_PHPSTAN=false
4942
- VALIDATE_CODING_STYLE=false
43+
install:
44+
- composer remove --no-interaction --no-update --dev "friendsofphp/php-cs-fixer"
45+
- travis_retry composer update $COMPOSER_ARGS
5046
allow_failures:
5147
- php: nightly
5248
fast_finish: true
@@ -58,6 +54,3 @@ script:
5854
- if [ "$VALIDATE_CODING_STYLE" == "true" ]; then composer phpcs; fi
5955
- if [ "$RUN_PHPSTAN" == "true" ]; then composer phpstan; fi
6056
- composer phpunit
61-
after_script:
62-
- if [ "$COLLECT_COVERAGE" == "true" ]; then wget https://scrutinizer-ci.com/ocular.phar
63-
&& php ocular.phar code-coverage:upload --format=php-clover build/clover.xml; fi

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,24 @@
22

33
All Notable changes to `PHP Domain Parser` **5.x** series will be documented in this file
44

5+
## 5.7.2 - 2020-10-25
6+
7+
### Added
8+
9+
- None
10+
11+
### Fixed
12+
13+
- Added support for PHP8 see [#289](https://github.com/jeremykendall/php-domain-parser/pull/289) based on works by [@szepeviktor](https://github.com/szepeviktor)
14+
15+
### Deprecated
16+
17+
- None
18+
19+
### Removed
20+
21+
- None
22+
523
## 5.7.1 - 2020-08-24
624

725
### Added

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ If the Domain is not resolved or in case of error a null `Pdp\Domain` is returne
9898
~~~php
9999
<?php
100100

101-
use Pdp\Rules;use Pdp\TopLevelDomains;
101+
use Pdp\Rules;
102+
use Pdp\TopLevelDomains;
102103

103104
$rules = Rules::createFromPath('/path/to/mozilla/public-suffix.dat'); //$rules is a Pdp\Rules object
104105

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@
4343
"psl"
4444
],
4545
"require": {
46-
"php": "^7.2.5",
4746
"ext-intl": "*",
4847
"ext-json": "*",
48+
"php": "^7.2.5 || ^8.0",
4949
"psr/log": "^1.1",
5050
"psr/simple-cache": "^1.0.1"
5151
},
5252
"require-dev": {
53-
"composer/composer": "^1.6",
53+
"composer/composer": "^1.6 || ^2.0",
5454
"friendsofphp/php-cs-fixer": "^2.16",
5555
"mikey179/vfsstream": "^1.6.7",
5656
"phpstan/phpstan": "^0.12",
5757
"phpstan/phpstan-phpunit": "^0.12",
5858
"phpstan/phpstan-strict-rules": "^0.12",
59-
"phpunit/phpunit": "^8.0"
59+
"phpunit/phpunit": "^8.0 || ^9.3"
6060
},
6161
"suggest": {
6262
"psr/simple-cache-implementation": "To enable using other cache providers",

src/CurlHttpClient.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
namespace Pdp;
1717

18+
use Throwable;
1819
use function curl_close;
1920
use function curl_errno;
2021
use function curl_error;
@@ -52,8 +53,13 @@ public function __construct(array $options = [])
5253
CURLOPT_HTTPGET => true,
5354
];
5455

55-
$curl = curl_init();
56-
$res = @curl_setopt_array($curl, $this->options);
56+
try {
57+
$curl = curl_init();
58+
$res = @curl_setopt_array($curl, $this->options);
59+
} catch (Throwable $exception) {
60+
throw new Exception('Please verify your curl additionnal options', $exception->getCode(), $exception);
61+
}
62+
5763
curl_close($curl);
5864
if (!$res) {
5965
throw new Exception('Please verify your curl additionnal options');

0 commit comments

Comments
 (0)