Skip to content

Commit af2c1be

Browse files
Merge pull request #29 from assertwell/release/v0.2.2
Version 0.2.2
2 parents 6377723 + b028894 commit af2c1be

15 files changed

+150
-68
lines changed

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
15+
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
1616
fail-fast: true
1717

1818
steps:

CHANGELOG.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,32 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Version 0.2.2] – 2022-09-05
8+
9+
### Fixed
10+
11+
* Fix a PHP 8.2 deprecation warning ([#27], props @brettmc)
12+
* Add PHP 8.x to the GitHub Actions testing matrix
13+
* Update PHPStan to 1.8
14+
* Clean up deprecation warnings related to PHPUnit Bridge
15+
716
## [Version 0.2.1] — 2021-04-15
817

18+
### Fixed
19+
920
* Mark tests that use `defineFunction()` or `deleteFunction()` as skipped if Runkit is unavailable ([#25])
1021
* Fix coding standards, remove unused namespace imports ([#22], props [@peter279k](https://github.com/peter279k))
1122

12-
1323
## [Version 0.2.0] — 2020-11-23
1424

25+
### Added
26+
1527
* Introduce a [new `AssertWell\PHPUnitGlobalState\Functions` trait](docs/Functions.md) ([#17])
1628
* Introduce an `AssertWell\PHPUnitGlobalState\Support\Runkit` support class ([#15])
17-
* Simplify the cleanup between tests of of the private properties that hold changes ([#16])
1829

30+
### Updated
31+
32+
* Simplify the cleanup between tests of of the private properties that hold changes ([#16])
1933

2034
## [Version 0.1.0] — 2020-09-25
2135

@@ -25,13 +39,14 @@ Initial public release of the package, with the following traits:
2539
* [`AssertWell\PHPUnitGlobalState\EnvironmentVariables`](docs/EnvironmentVariables.md)
2640
* [`AssertWell\PHPUnitGlobalState\GlobalVariables`](docs/GlobalVariables.md)
2741

28-
2942
[Unreleased]: https://github.com/assertwell/phpunit-global-state/compare/master...develop
3043
[Version 0.1.0]: https://github.com/assertwell/phpunit-global-state/tag/v0.1.0
3144
[Version 0.2.0]: https://github.com/assertwell/phpunit-global-state/tag/v0.2.0
3245
[Version 0.2.1]: https://github.com/assertwell/phpunit-global-state/tag/v0.2.1
46+
[Version 0.2.2]: https://github.com/assertwell/phpunit-global-state/tag/v0.2.2
3347
[#15]: https://github.com/assertwell/phpunit-global-state/pull/15
3448
[#16]: https://github.com/assertwell/phpunit-global-state/pull/16
3549
[#17]: https://github.com/assertwell/phpunit-global-state/pull/17
3650
[#22]: https://github.com/assertwell/phpunit-global-state/pull/22
3751
[#25]: https://github.com/assertwell/phpunit-global-state/pull/25
52+
[#27]: https://github.com/assertwell/phpunit-global-state/pull/27

composer.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require-dev": {
2727
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.0",
2828
"phpcompatibility/php-compatibility": "^9.3",
29-
"phpstan/phpstan": "^0.12",
29+
"phpstan/phpstan": "^1.8",
3030
"squizlabs/php_codesniffer": "^3.5",
3131
"stevegrunwell/runkit7-installer": "^1.2",
3232
"symfony/phpunit-bridge": "^5.1"
@@ -50,7 +50,10 @@
5050
"config": {
5151
"preferred-install": "dist",
5252
"sort-packages": true,
53-
"optimize-autoloader": true
53+
"optimize-autoloader": true,
54+
"allow-plugins": {
55+
"dealerdirect/phpcodesniffer-composer-installer": true
56+
}
5457
},
5558
"scripts": {
5659
"test": [

composer.lock

Lines changed: 111 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ parameters:
1010
ignoreErrors:
1111
# Don't require return type hinting in tests.
1212
-
13-
message: '#Method \S+ has no return typehint specified\.#'
13+
message: '#Method \S+ has no return type specified\.#'
1414
path: tests/*
1515

16-
# Strings are a valid callable type.
17-
-
18-
message: '#Parameter \#1 \S+ of function call_user_func_array expects callable\(\): mixed, string given\.#'
19-
path: src/Support/Runkit.php
20-
2116
# Dynamically-defined functions.
2217
-
2318
message: '#Function \S+ not found\.$#'

0 commit comments

Comments
 (0)