Skip to content

Commit b394109

Browse files
committed
php 8.4 and phpunit 11
1 parent fd6fee0 commit b394109

File tree

6 files changed

+30
-30
lines changed

6 files changed

+30
-30
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,41 @@ on:
66
- cron: '0 0 * * *'
77

88
jobs:
9-
php81:
10-
name: PHP 8.1
11-
runs-on: ubuntu-22.04
9+
php82:
10+
name: PHP 8.2
11+
runs-on: ubuntu-24.04
1212
steps:
1313
- name: checkout
1414
uses: actions/checkout@v4
1515
- name: composer test
16-
uses: docker://ghcr.io/chubbyphp/ci-php81:latest
16+
uses: docker://ghcr.io/chubbyphp/ci-php82:latest
1717
env:
1818
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1919
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
20-
php82:
21-
name: PHP 8.2
22-
runs-on: ubuntu-22.04
20+
php83:
21+
name: PHP 8.3
22+
runs-on: ubuntu-24.04
2323
steps:
2424
- name: checkout
2525
uses: actions/checkout@v4
2626
- name: composer test
27-
uses: docker://ghcr.io/chubbyphp/ci-php82:latest
27+
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
2828
env:
2929
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3030
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
31-
php83:
32-
name: PHP 8.3
33-
runs-on: ubuntu-22.04
31+
php84:
32+
name: PHP 8.4
33+
runs-on: ubuntu-24.04
3434
steps:
3535
- name: checkout
3636
uses: actions/checkout@v4
3737
- name: composer test
38-
uses: docker://ghcr.io/chubbyphp/ci-php83:latest
38+
uses: docker://ghcr.io/chubbyphp/ci-php84:latest
3939
env:
4040
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4141
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
4242
- name: sonarcloud.io
43-
uses: sonarsource/sonarcloud-github-action@master
43+
uses: sonarsource/sonarqube-scan-action@v4.1.0
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ A simple decode/encode solution for json / jsonx / url-encoded / xml / yaml.
2525

2626
## Requirements
2727

28-
* php: ^8.1
29-
* symfony/yaml: ^5.4.31|^6.3.8|^7.0
28+
* php: ^8.2
29+
* symfony/yaml: ^5.4.46|^6.4.14|^7.2
3030

3131
## Suggest
3232

@@ -38,7 +38,7 @@ A simple decode/encode solution for json / jsonx / url-encoded / xml / yaml.
3838
Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-decode-encode][1].
3939

4040
```sh
41-
composer require chubbyphp/chubbyphp-decode-encode "^1.1"
41+
composer require chubbyphp/chubbyphp-decode-encode "^1.2"
4242
```
4343

4444
## Usage

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.1",
22+
"php": "^8.2",
2323
"ext-dom": "*",
2424
"ext-json": "*",
2525
"ext-mbstring": "*",
26-
"symfony/yaml": "^5.4.31|^6.3.8|^7.0"
26+
"symfony/yaml": "^5.4.46|^6.4.14|^7.2"
2727
},
2828
"require-dev": {
2929
"chubbyphp/chubbyphp-container": "^2.2",
3030
"chubbyphp/chubbyphp-dev-helper": "dev-master",
3131
"chubbyphp/chubbyphp-laminas-config-factory": "^1.3",
32-
"chubbyphp/chubbyphp-mock": "^1.7.0",
33-
"infection/infection": "^0.27.8",
32+
"chubbyphp/chubbyphp-mock": "^1.8",
33+
"infection/infection": "^0.29.8",
3434
"php-coveralls/php-coveralls": "^2.7.0",
35-
"phpstan/extension-installer": "^1.3.1",
36-
"phpstan/phpstan": "^1.10.45",
37-
"phpunit/phpunit": "^10.4.2",
35+
"phpstan/extension-installer": "^1.4.3",
36+
"phpstan/phpstan": "^2.0.3",
37+
"phpunit/phpunit": "^11.5.0",
3838
"psr/container": "^2.0.2"
3939
},
4040
"autoload": {
@@ -56,7 +56,7 @@
5656
},
5757
"extra": {
5858
"branch-alias": {
59-
"dev-master": "1.1-dev"
59+
"dev-master": "1.2-dev"
6060
}
6161
},
6262
"scripts": {
@@ -71,9 +71,9 @@
7171
],
7272
"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",
7373
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
74-
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
74+
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-directory=build/phpunit",
7575
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
7676
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=8 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
77-
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
77+
"test:unit": "vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-directory=build/phpunit"
7878
}
7979
}

src/Encoder/UrlEncodedTypeEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@ private function getValueAsString(bool|float|int|\stdClass|string $value): strin
7070
return (string) $value;
7171
}
7272

73-
throw new \InvalidArgumentException(sprintf('Unsupported data type: %s', \gettype($value)));
73+
throw new \InvalidArgumentException(\sprintf('Unsupported data type: %s', \gettype($value)));
7474
}
7575
}

src/LogicException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ final class LogicException extends \LogicException
88
{
99
public static function createMissingContentType(string $contentType): self
1010
{
11-
return new self(sprintf('There is no decoder/encoder for content-type: "%s"', $contentType));
11+
return new self(\sprintf('There is no decoder/encoder for content-type: "%s"', $contentType));
1212
}
1313
}

src/RuntimeException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ final class RuntimeException extends \RuntimeException
88
{
99
public static function createNotParsable(string $contentType, ?string $error = null): self
1010
{
11-
$message = sprintf('Data is not parsable with content-type: "%s"', $contentType);
11+
$message = \sprintf('Data is not parsable with content-type: "%s"', $contentType);
1212
if (null !== $error) {
13-
$message .= sprintf(', error: "%s"', $error);
13+
$message .= \sprintf(', error: "%s"', $error);
1414
}
1515

1616
return new self($message);

0 commit comments

Comments
 (0)