Skip to content

Commit

Permalink
php 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikzogg committed Dec 2, 2021
1 parent 9018383 commit da0d3b9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -41,6 +41,17 @@ jobs:
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
php81:
name: PHP 8.1
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: composer test
uses: docker://chubbyphp/ci-php81:latest
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
- name: sonarcloud.io
uses: sonarsource/sonarcloud-github-action@master
env:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -28,14 +28,14 @@ A simple deserialization.
* php: ^7.4|^8.0
* psr/http-message: ^1.0.1
* psr/log: ^1.1.3
* symfony/yaml: ^3.4.45|^4.4.15|^5.0.11
* symfony/yaml: ^4.4.34|^5.3.11|^6.0.0

## Suggest

* chubbyphp/chubbyphp-container: ^1.1
* pimple/pimple: ^3.3
* psr/container: ^1.0
* symfony/dependency-injection: ^3.4.45|^4.4.15|^5.0.11 (symfony integration)
* symfony/dependency-injection: ^4.4.34|^5.3.11|^6.0.0 (symfony integration)

## Installation

Expand Down
18 changes: 9 additions & 9 deletions composer.json
Expand Up @@ -16,24 +16,24 @@
"ext-mbstring": "*",
"psr/http-message": "^1.0.1",
"psr/log": "^1.1.3",
"symfony/yaml": "^3.4.45|^4.4.15|^5.0.11"
"symfony/yaml": "^4.4.34|^5.3.11|^6.0.0"
},
"require-dev": {
"chubbyphp/chubbyphp-container": "^1.1|^2.0",
"chubbyphp/chubbyphp-dev-helper": "dev-master",
"chubbyphp/chubbyphp-laminas-config-factory": "^1.0",
"chubbyphp/chubbyphp-mock": "^1.6",
"chubbyphp/chubbyphp-mock": "^1.6.1",
"doctrine/persistence": "^1.3|^2.0",
"infection/infection": "^0.25.2",
"php-coveralls/php-coveralls": "^2.4.3",
"infection/infection": "^0.25.3",
"php-coveralls/php-coveralls": "^2.5.1",
"phploc/phploc": "^7.0.2",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^0.12.99",
"phpstan/phpstan": "^1.1.2",
"phpunit/phpunit": "^9.5.10",
"pimple/pimple": "^3.3",
"psr/container": "^1.0|^2.0",
"symfony/config": "^3.4.45|^4.4.15|^5.0.11",
"symfony/dependency-injection": "^3.4.45|^4.4.15|^5.0.11"
"symfony/config": "^4.4.34|^5.3.11|^6.0.0",
"symfony/dependency-injection": "^4.4.34|^5.3.11|^6.0.0"
},
"autoload": {
"psr-4": { "Chubbyphp\\Deserialization\\": "src/" }
Expand All @@ -50,7 +50,7 @@
}
},
"scripts": {
"fix:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
"fix:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --cache-file=build/phpcs.cache",
"test": [
"@test:lint",
"@test:unit",
Expand All @@ -60,7 +60,7 @@
"@test:loc",
"@test:cs"
],
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
"test:cs": "mkdir -p build && PHP_CS_FIXER_IGNORE_ENV=1 vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=94 --verbose --coverage=build/phpunit",
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
@@ -1,5 +1,8 @@
parameters:
ignoreErrors:
-
message: '/no value type specified in iterable type array/'
path: %currentWorkingDirectory%/src/*.php
-
message: '//'
path: %currentWorkingDirectory%/src/Decoder/JsonxTypeDecoder.php
Expand Down

0 comments on commit da0d3b9

Please sign in to comment.