Skip to content

Commit 5f0fc27

Browse files
authored
Add support for PHP 8.1 (#43)
1 parent e172e5e commit 5f0fc27

File tree

8 files changed

+373
-327
lines changed

8 files changed

+373
-327
lines changed

.github/workflows/test-unit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
operating-system: [ 'ubuntu-latest' ]
14-
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '8.0' ]
14+
php-versions: [ '5.6', '7.0', '7.1', '7.2', '7.3', '8.0', '8.1' ]
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v2

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.35] - 2022-01-02
8+
9+
### Fixes
10+
- Support for PHP 8.1.
11+
712
## [0.2.34] - 2021-07-22
813

914
### Fixes
@@ -98,6 +103,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
98103
### Fixed
99104
- Description trimming bug.
100105

106+
[0.2.35]: https://github.com/swaggest/php-code-builder/compare/v0.2.34...v0.2.35
101107
[0.2.34]: https://github.com/swaggest/php-code-builder/compare/v0.2.33...v0.2.34
102108
[0.2.33]: https://github.com/swaggest/php-code-builder/compare/v0.2.32...v0.2.33
103109
[0.2.32]: https://github.com/swaggest/php-code-builder/compare/v0.2.31...v0.2.32

composer.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"php": ">=5.6.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "^5"
22+
"phpunit/phpunit": "4.8.36"
2323
},
2424
"autoload": {
2525
"psr-4": {
@@ -31,12 +31,17 @@
3131
"Swaggest\\PhpCodeBuilder\\Tests\\": "tests/src/"
3232
}
3333
},
34-
"scripts": {
35-
"test": "php -dxdebug.coverage_enable=1 ./vendor/bin/phpunit --coverage-text"
36-
},
3734
"config": {
3835
"platform": {
3936
"php": "5.6.10"
4037
}
38+
},
39+
"scripts": {
40+
"post-install-cmd": [
41+
"patch -N -s -p0 < ./tests/phpunit.patch"
42+
],
43+
"post-update-cmd": [
44+
"patch -N -s -p0 < ./tests/phpunit.patch"
45+
]
4146
}
4247
}

0 commit comments

Comments
 (0)