Skip to content

Commit 0eebc65

Browse files
Support PHP 8.3 (#48)
* Support PHP 8.3 * Fixed constructor phpdoc * Update CommandException.php
1 parent c0b54a9 commit 0eebc65

File tree

7 files changed

+15
-14
lines changed

7 files changed

+15
-14
lines changed

.github/workflows/checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Composer normalize
2121
uses: docker://ergebnis/composer-normalize-action

.github/workflows/ci.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
extensions: mbstring
2424

2525
- name: Checkout code
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: Install dependencies
2929
run: composer update --no-interaction --prefer-stable --prefer-lowest --no-progress
@@ -37,7 +37,7 @@ jobs:
3737
strategy:
3838
max-parallel: 10
3939
matrix:
40-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2']
40+
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
4141

4242
steps:
4343
- name: Set up PHP
@@ -49,7 +49,7 @@ jobs:
4949
extensions: mbstring
5050

5151
- name: Checkout code
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4
5353

5454
- name: Install dependencies
5555
run: composer update --no-interaction --no-progress

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
steps:
1717
- name: Checkout code
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919

2020
- name: Setup PHP
2121
uses: shivammathur/setup-php@v2

.php-cs-fixer.dist.php

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
'@Symfony' => true,
99
'declare_strict_types' => false,
1010
'global_namespace_import' => false,
11+
'no_superfluous_phpdoc_tags' => [
12+
'allow_mixed' => true,
13+
],
1114
'phpdoc_annotation_without_dot' => false,
1215
'phpdoc_summary' => false,
1316
'phpdoc_to_comment' => false,

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
],
2727
"require": {
2828
"php": "^7.2.5 || ^8.0",
29-
"guzzlehttp/guzzle": "^7.5.1",
30-
"guzzlehttp/promises": "^1.5.3 || ^2.0",
31-
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5"
29+
"guzzlehttp/guzzle": "^7.8",
30+
"guzzlehttp/promises": "^1.5.3 || ^2.0.1",
31+
"guzzlehttp/psr7": "^1.9.1 || ^2.5.1"
3232
},
3333
"require-dev": {
34-
"bamarni/composer-bin-plugin": "^1.8.1",
34+
"bamarni/composer-bin-plugin": "^1.8.2",
3535
"phpunit/phpunit": "^8.5.19 || ^9.5.8"
3636
},
3737
"autoload": {

src/Exception/CommandException.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@ public static function fromPrevious(CommandInterface $command, \Exception $prev)
5757
}
5858

5959
/**
60-
* @param string $message Exception message
61-
* @param \Exception $previous Previous exception (if any)
62-
* @param RequestInterface $request
63-
* @param ResponseInterface $response
60+
* @param string $message Exception message
61+
* @param \Exception|null $previous Previous exception (if any)
6462
*/
6563
public function __construct(
6664
$message,

vendor-bin/php-cs-fixer/composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"require": {
33
"php": "^7.4 || ^8.0",
4-
"friendsofphp/php-cs-fixer": "3.16.0"
4+
"friendsofphp/php-cs-fixer": "3.40.2"
55
},
66
"config": {
77
"preferred-install": "dist"

0 commit comments

Comments
 (0)