Skip to content

Commit 5285352

Browse files
committed
V3 (PHP8+, argument and return types) and add FC22
1 parent 20b5a65 commit 5285352

File tree

99 files changed

+1791
-696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+1791
-696
lines changed

.github/workflows/php.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
strategy:
99
matrix:
1010
operating-system: [ubuntu-latest]
11-
php-version: ['7.4', '8.0', '8.1']
11+
php-version: ['8.0', '8.1']
1212
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
1313
steps:
14-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1515

1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
@@ -27,6 +27,9 @@ jobs:
2727
- name: Install dependencies
2828
run: composer update --no-progress --no-suggest
2929

30+
- name: Run static checks
31+
run: composer check
32+
3033
- name: Run test suite
3134
run: composer test-ci
3235

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ 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+
## [3.0] - 2022-04-11
8+
9+
Breaking change - types for all arguments/return values
10+
11+
### Changed
12+
13+
* Minimum version is now PHP 8.0
14+
* All method arguments and returns values have types now
15+
* Examples use now up-to-date React event loop
16+
17+
### Added
18+
19+
* Adds Function 22 (0x16) Mask Write Register support
20+
* Use PHPStan for code static analysis in CI flow
21+
722
## [2.4] - 2021-12-26
823

924
### Added

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
"type": "library",
88
"license": "Apache-2.0",
99
"require": {
10-
"php": "^7.0 || ^8.0",
10+
"php": "^8.0",
1111
"ext-mbstring": "*"
1212
},
1313
"require-dev": {
1414
"phpunit/phpunit": "^9.0",
15-
"react/datagram": "^1.5",
16-
"react/socket": "^1.6",
15+
"react/datagram": "^1.8",
16+
"react/socket": "^1.10",
1717
"react/child-process": "^0.6",
18-
"psr/log": "^1.0"
18+
"psr/log": "^1.0",
19+
"phpstan/phpstan": "^1.5"
1920
},
2021
"suggest": {
2122
"psr/log": "Required for using the Log middleware with BinaryStreamConnection"
@@ -31,6 +32,7 @@
3132
}
3233
},
3334
"scripts": {
35+
"check": "vendor/bin/phpstan analyse --no-progress",
3436
"test": "vendor/bin/phpunit",
3537
"test-unit": "vendor/bin/phpunit --testsuite 'unit-tests'",
3638
"test-integration": "vendor/bin/phpunit --testsuite 'integration-tests'",

0 commit comments

Comments
 (0)