Skip to content

Commit

Permalink
V3 (PHP8+, argument and return types) and add FC22
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Apr 11, 2022
1 parent 20b5a65 commit 5285352
Show file tree
Hide file tree
Showing 99 changed files with 1,791 additions and 696 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-version: ['7.4', '8.0', '8.1']
php-version: ['8.0', '8.1']
name: PHP ${{ matrix.php-version }} Test on ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -27,6 +27,9 @@ jobs:
- name: Install dependencies
run: composer update --no-progress --no-suggest

- name: Run static checks
run: composer check

- name: Run test suite
run: composer test-ci

Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
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).

## [3.0] - 2022-04-11

Breaking change - types for all arguments/return values

### Changed

* Minimum version is now PHP 8.0
* All method arguments and returns values have types now
* Examples use now up-to-date React event loop

### Added

* Adds Function 22 (0x16) Mask Write Register support
* Use PHPStan for code static analysis in CI flow

## [2.4] - 2021-12-26

### Added
Expand Down
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@
"type": "library",
"license": "Apache-2.0",
"require": {
"php": "^7.0 || ^8.0",
"php": "^8.0",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^9.0",
"react/datagram": "^1.5",
"react/socket": "^1.6",
"react/datagram": "^1.8",
"react/socket": "^1.10",
"react/child-process": "^0.6",
"psr/log": "^1.0"
"psr/log": "^1.0",
"phpstan/phpstan": "^1.5"
},
"suggest": {
"psr/log": "Required for using the Log middleware with BinaryStreamConnection"
Expand All @@ -31,6 +32,7 @@
}
},
"scripts": {
"check": "vendor/bin/phpstan analyse --no-progress",
"test": "vendor/bin/phpunit",
"test-unit": "vendor/bin/phpunit --testsuite 'unit-tests'",
"test-integration": "vendor/bin/phpunit --testsuite 'integration-tests'",
Expand Down
Loading

0 comments on commit 5285352

Please sign in to comment.