Skip to content

Commit 34c7177

Browse files
authored
Merge pull request #350 from jeremykendall/develop
Prepare next release
2 parents a9e0b23 + df277d6 commit 34c7177

26 files changed

+685
-527
lines changed

.github/workflows/build.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@ jobs:
1010
runs-on: ubuntu-20.04
1111
strategy:
1212
matrix:
13-
php: ['8.1']
13+
php: ['8.1', '8.2']
1414
stability: [prefer-lowest, prefer-stable]
15-
include:
16-
- php: '8.2'
17-
flags: "--ignore-platform-req=php"
18-
phpunit-flags: '--no-coverage'
19-
stability: prefer-stable
2015
steps:
2116
- name: Checkout code
22-
uses: actions/checkout@v2
17+
uses: actions/checkout@v3
2318

2419
- name: Setup PHP
2520
uses: shivammathur/setup-php@v2
@@ -36,8 +31,8 @@ jobs:
3631
- name: Get Composer Cache Directory
3732
id: composer-cache
3833
run: |
39-
echo "::set-output name=dir::$(composer config cache-files-dir)"
40-
- uses: actions/cache@v2
34+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
35+
- uses: actions/cache@v3
4136
with:
4237
path: ${{ steps.composer-cache.outputs.dir }}
4338
key: ${{ runner.os }}-composer-${{ matrix.stability }}-${{ matrix.flags }}-${{ hashFiles('**/composer.lock') }}
@@ -53,7 +48,7 @@ jobs:
5348

5449
- name: Run static analysis
5550
run: composer phpstan
56-
if: ${{ matrix.php == '8.1' && matrix.stability == 'prefer-stable'}}
51+
if: ${{ matrix.php == '8.2' && matrix.stability == 'prefer-stable'}}
5752

5853
- name: Run Coding style rules
5954
run: composer phpcs:fix

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ docs
44
build
55
pdp
66
.idea
7+
.phpunit.cache
78
.php_cs.cache
89
.php-cs-fixer.cache
9-
.phpunit.result.cache
1010
composer.lock

CHANGELOG.md

Lines changed: 53 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,27 @@
22

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

5-
## 6.2.0 - 2022-10-30
5+
## [6.3.0] - 2023-02-25
6+
7+
### Added
8+
9+
- `RegisteredName` class to allow domain with IP4-like labels
10+
11+
### Fixed
12+
13+
- Using PHPUnit 10
14+
- `Domain` decorates the new `RegisteredName` class [#347](https://github.com/jeremykendall/php-domain-parser/issues/347)
15+
- `Host::withoutLabel` works without arguments.
16+
17+
### Deprecated
18+
19+
- None
20+
21+
### Removed
22+
23+
- None
24+
25+
## [6.2.0] - 2022-10-30
626

727
### Added
828

@@ -20,7 +40,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
2040

2141
- PHP7 and PHP8.0 support
2242

23-
## 6.1.2 - 2022-09-29
43+
## [6.1.2] - 2022-09-29
2444

2545
### Added
2646

@@ -38,7 +58,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
3858

3959
- None
4060

41-
## 6.1.1 - 2022-02-18
61+
## [6.1.1] - 2022-02-18
4262

4363
### Added
4464

@@ -56,7 +76,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
5676

5777
- None
5878

59-
## 6.1.0 - 2021-06-19
79+
## [6.1.0] - 2021-06-19
6080

6181
### Added
6282

@@ -79,7 +99,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
7999

80100
- None
81101

82-
## 6.0.0 - 2020-12-13
102+
## [6.0.0] - 2020-12-13
83103

84104
### Added
85105

@@ -130,7 +150,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
130150
- `Pdp\TopLevelDomains::contains` without replacement
131151
- Internal Converter classes (implementation details are no longer exposed).
132152

133-
## 5.7.2 - 2020-10-25
153+
## [5.7.2] - 2020-10-25
134154

135155
### Added
136156

@@ -148,7 +168,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
148168

149169
- None
150170

151-
## 5.7.1 - 2020-08-24
171+
## [5.7.1] - 2020-08-24
152172

153173
### Added
154174

@@ -166,7 +186,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
166186

167187
- None
168188

169-
## 5.7.0 - 2020-08-02
189+
## [5.7.0] - 2020-08-02
170190

171191
### Added
172192

@@ -190,7 +210,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
190210
- Support for PHP7.0 and PHP7.1
191211
- The external data from IANA and mozilla is no longer part of the package and will be downloaded only on demand on composer update/install.
192212

193-
## 5.6.0 - 2019-12-29
213+
## [5.6.0] - 2019-12-29
194214

195215
### Added
196216

@@ -209,7 +229,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
209229

210230
- None
211231

212-
## 5.5.0 - 2019-04-14
232+
## [5.5.0] - 2019-04-14
213233

214234
### Added
215235

@@ -232,7 +252,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
232252

233253
- None
234254

235-
## 5.4.0 - 2018-11-22
255+
## [5.4.0] - 2018-11-22
236256

237257
### Added
238258

@@ -259,7 +279,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
259279

260280
- None
261281

262-
## 5.3.0 - 2018-05-22
282+
## [5.3.0] - 2018-05-22
263283

264284
### Added
265285

@@ -294,7 +314,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
294314

295315
- None
296316

297-
## 5.2.0 - 2018-02-23
317+
## [5.2.0] - 2018-02-23
298318

299319
### Added
300320

@@ -320,7 +340,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
320340

321341
- None
322342

323-
## 5.1.0 - 2017-12-18
343+
## [5.1.0] - 2017-12-18
324344

325345
### Added
326346

@@ -339,7 +359,7 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
339359

340360
- None
341361

342-
## 5.0.0 - 2017-12-13
362+
## [5.0.0] - 2017-12-13
343363

344364
### Added
345365

@@ -369,3 +389,21 @@ All Notable changes to `PHP Domain Parser` starting from the **5.x** series will
369389
- `Pdp\PublicSuffixManager` class replaced by the `Pdp\Manager` class
370390
- `Pdp\HttpAdapter\HttpAdapterInterface` interface replaced by the `Pdp\HttpClient` interface
371391
- `Pdp\HttpAdapter\CurlHttpAdapter` class replaced by the `Pdp\CurlHttpClient` class
392+
393+
[6.3.0]: https://github.com/jeremykendall/php-domain-parser/compare/6.2.0...6.3.0
394+
[6.2.0]: https://github.com/jeremykendall/php-domain-parser/compare/6.1.2...6.2.0
395+
[6.1.2]: https://github.com/jeremykendall/php-domain-parser/compare/6.1.1...6.1.2
396+
[6.1.1]: https://github.com/jeremykendall/php-domain-parser/compare/6.1.0...6.1.1
397+
[6.1.0]: https://github.com/jeremykendall/php-domain-parser/compare/6.0.0...6.1.0
398+
[6.0.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.7.2...6.0.0
399+
[6.0.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.7.2...6.0.0
400+
[5.7.2]: https://github.com/jeremykendall/php-domain-parser/compare/5.7.1...5.7.2
401+
[5.7.1]: https://github.com/jeremykendall/php-domain-parser/compare/5.7.0...5.7.1
402+
[5.7.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.6.0...5.7.0
403+
[5.6.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.5.0...5.6.0
404+
[5.5.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.4.0...5.5.0
405+
[5.4.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.3.0...5.4.0
406+
[5.3.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.2.0...5.3.0
407+
[5.2.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.1.0...5.3.0
408+
[5.1.0]: https://github.com/jeremykendall/php-domain-parser/compare/5.0.0...5.1.0
409+
[5.0.0]: https://github.com/jeremykendall/php-domain-parser/compare/3.0.0...5.0.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ PHP Domain Parser is compliant around:
2929
### Composer
3030

3131
~~~
32-
$ composer require jeremykendall/php-domain-parser
32+
composer require jeremykendall/php-domain-parser:^6.0
3333
~~~
3434

3535
### System Requirements
@@ -594,7 +594,7 @@ Portions of the `Pdp\Rules` class are derivative works of the PHP
594594
[registered-domain-libs](https://github.com/usrflo/registered-domain-libs).
595595
I've included a copy of the Apache Software Foundation License 2.0 in this project.
596596

597-
[ico-github-actions-build]: https://img.shields.io/github/workflow/status/jeremykendall/php-domain-parser/Build?style=flat-square
597+
[ico-github-actions-build]: https://img.shields.io/github/actions/workflow/status/jeremykendall/php-domain-parser/build.yaml?branch=develop&style=flat-square
598598
[ico-packagist]: https://img.shields.io/packagist/dt/jeremykendall/php-domain-parser.svg?style=flat-square
599599
[ico-release]: https://img.shields.io/github/release/jeremykendall/php-domain-parser.svg?style=flat-square
600600
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@
4646
"ext-json": "*"
4747
},
4848
"require-dev": {
49-
"friendsofphp/php-cs-fixer": "^v3.8.0",
49+
"friendsofphp/php-cs-fixer": "^v3.13.2",
5050
"guzzlehttp/guzzle": "^7.5",
5151
"guzzlehttp/psr7": "^1.6 || ^2.4.3",
52-
"phpstan/phpstan": "^1.9",
53-
"phpstan/phpstan-phpunit": "^1.2.2",
54-
"phpstan/phpstan-strict-rules": "^1.4.4",
55-
"phpunit/phpunit": "^9.5.26",
52+
"phpstan/phpstan": "^1.10.3",
53+
"phpstan/phpstan-phpunit": "^1.3.8",
54+
"phpstan/phpstan-strict-rules": "^1.5.0",
55+
"phpunit/phpunit": "^10.0.12",
5656
"psr/http-factory": "^1.0.1",
5757
"psr/simple-cache": "^1.0.1",
5858
"symfony/cache": "^v5.0.0 || ^v6.0.0"
@@ -69,14 +69,14 @@
6969
}
7070
},
7171
"scripts": {
72-
"phpcs": "php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi",
72+
"phpcs": "PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix -vvv --diff --dry-run --allow-risky=yes --ansi",
7373
"phpcs:fix": "php-cs-fixer fix -vvv --allow-risky=yes --ansi",
74-
"phpstan": "phpstan analyse -l max -c phpstan.neon src --memory-limit=256M --ansi",
74+
"phpstan": "phpstan analyse -l max -c phpstan.neon src --xdebug --memory-limit=256M --ansi",
7575
"phpunit": "XDEBUG_MODE=coverage phpunit --coverage-text",
7676
"test": [
7777
"@phpunit",
7878
"@phpstan",
79-
"@phpcs:fix"
79+
"@phpcs"
8080
]
8181
},
8282
"scripts-descriptions": {

phpunit.xml.dist

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd"
55
bootstrap="vendor/autoload.php"
66
backupGlobals="false"
7-
backupStaticAttributes="false"
87
colors="true"
9-
verbose="true"
10-
convertErrorsToExceptions="true"
11-
convertNoticesToExceptions="true"
12-
convertWarningsToExceptions="true"
138
processIsolation="false"
14-
stopOnFailure="false">
9+
stopOnFailure="false"
10+
cacheDirectory=".phpunit.cache"
11+
backupStaticProperties="false"
12+
>
1513
<coverage>
1614
<include>
1715
<directory suffix=".php">src</directory>

0 commit comments

Comments
 (0)