Skip to content

Commit

Permalink
Lower number of ci jobs and upgrade phpstan (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas authored Dec 2, 2021
1 parent 310ad8b commit 17ee48b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: "Setup PHP"
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
tools: cs2pr
- name: "Install dependencies with composer"
run: |
Expand Down Expand Up @@ -51,24 +51,18 @@ jobs:
symfony-version: 4.4.*
- php-version: 8.0
symfony-version: 4.4.*
- php-version: 8.1
symfony-version: 4.4.*
- php-version: 7.4
symfony-version: 5.3.*
- php-version: 8.0
symfony-version: 5.3.*
- php-version: 8.0
symfony-version: 5.4.*
dev: true
- php-version: 8.0
symfony-version: 6.0.*
dev: true
- php-version: 8.1
symfony-version: 5.3.*
symfony-version: 5.4.*
- php-version: 8.1
symfony-version: 5.4.*
dev: true
- php-version: 8.0
symfony-version: 6.0.*
- php-version: 8.1
symfony-version: 6.0.*
dev: true
steps:
- name: "Checkout"
uses: actions/checkout@v2
Expand All @@ -77,14 +71,10 @@ jobs:
with:
coverage: none
php-version: ${{ matrix.php-version }}
- name: "Configure minimum stability"
if: matrix.dev
run: |
composer config minimum-stability dev
composer remove --dev friendsofphp/php-cs-fixer
- name: "Install dependencies (fixed Symfony version) with composer"
if: matrix.symfony-version
run: |
composer remove --dev friendsofphp/php-cs-fixer
composer require symfony/options-resolver:${{ matrix.symfony-version }} --no-interaction --no-update
composer update --no-interaction --no-progress --no-suggest
- name: "Install dependencies (lowest dependencies) with composer"
Expand All @@ -103,8 +93,8 @@ jobs:
strategy:
matrix:
include:
- php-version: 8.0
symfony-version: 5.3.*
- php-version: 8.1
symfony-version: 6.0.*
steps:
- name: "Checkout"
uses: actions/checkout@v2
Expand All @@ -115,6 +105,7 @@ jobs:
php-version: ${{ matrix.php-version }}
- name: "Install dependencies with composer"
run: |
composer remove --dev friendsofphp/php-cs-fixer
composer require symfony/options-resolver:${{ matrix.symfony-version }} --no-interaction --no-update
composer update --no-interaction --no-progress --no-suggest
- name: "Run tests with phpunit/phpunit"
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Version 2.8.0

- add external user id auth hash in device to enable identity verification
- Allow Symfony 6

## Version 2.7.0

- Additional SMS related fields (on the Notifications payload)
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
"symfony/options-resolver": "^4.4|^5.0|^6.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.1",
"friendsofphp/php-cs-fixer": "^3.3",
"nyholm/psr7": "^1.2",
"phpstan/phpstan": "^0.12",
"phpstan/phpstan-phpunit": "^0.12",
"phpstan/phpstan": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"symfony/http-client": "^5.0|^6.0",
"symfony/phpunit-bridge": "^5.3|^6.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/AbstractApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ protected function createRequest(string $method, string $uri): RequestInterface

/**
* @param mixed $value
* @phpstan-param int<1, max> $maxDepth
*/
protected function createStream($value, int $flags = null, int $maxDepth = 512): StreamInterface
{
Expand Down

0 comments on commit 17ee48b

Please sign in to comment.