Skip to content

Commit

Permalink
Merge pull request #5 from marcuswinkler/php-8.2
Browse files Browse the repository at this point in the history
Allow installation with PHP 8.2
  • Loading branch information
darkmatus committed Feb 7, 2023
2 parents 09a27bd + a977e8e commit 9d7b8aa
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:

- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'

- uses: "ramsey/composer-install@v1"
- uses: "ramsey/composer-install@v2"

- run: composer require --dev phpstan/phpstan

Expand All @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: ['8.0', '8.1']
php: ['8.0', '8.1', '8.2']
name: PHP ${{ matrix.php }} tests
steps:
- uses: actions/checkout@v2
Expand All @@ -35,7 +35,7 @@ jobs:

- run: ./travisci/bin/start.sh

- uses: "ramsey/composer-install@v1"
- uses: "ramsey/composer-install@v2"

- run: |
./travisci/bin/logs.sh
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"sort-packages": true
},
"require": {
"php": "8.0.*|8.1.*"
"php": "8.0.*|8.1.*|8.2.*"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
Expand Down
31 changes: 31 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
parameters:
ignoreErrors:
-
message: "#^Offset 'message' on array\\{type\\: int, message\\: string, file\\: string, line\\: int\\} in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: src/Network/Connection.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Network/Connection.php

-
message: "#^Variable \\$read in empty\\(\\) always exists and is not falsy\\.$#"
count: 1
path: src/Network/Connection.php

-
message: "#^Comparison operation \"\\<\" between 0 and int\\<1, max\\> is always true\\.$#"
count: 1
path: src/Transport/Parser.php

-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/Util/IdGenerator.php

-
message: "#^Unsafe access to private property Stomp\\\\Util\\\\IdGenerator\\:\\:\\$generatedIds through static\\:\\:\\.$#"
count: 4
path: src/Util/IdGenerator.php
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ parameters:
level: 4
paths:
- src/

includes:
- phpstan-baseline.neon

0 comments on commit 9d7b8aa

Please sign in to comment.