Skip to content

Commit 0bf2a5a

Browse files
committed
feat: adds php 8.4 support
1 parent e3c9145 commit 0bf2a5a

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.1, 8.2]
12+
php: [8.1, 8.2, 8.3, 8.4]
1313
symfony: [5.4.*, 6.3.*, 6.4.*, 7.0.*]
1414
dependency-version: [prefer-lowest, prefer-stable]
1515
include:

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
],
1717
"require": {
1818
"php": "^8.1.0",
19-
"nyholm/psr7": "^1.8.1",
20-
"openai-php/client": "^0.8.0",
19+
"nyholm/psr7": "^1.8.2",
20+
"openai-php/client": "^0.8.5",
2121
"psr/http-client": "^1.0.3",
22-
"psr/http-factory": "^1.0.2",
23-
"symfony/config": "^5.4|^6.3|^7.0",
24-
"symfony/dependency-injection": "^5.4|^6.3|^7.0.1",
25-
"symfony/http-client": "^5.4|^6.3|^7.0",
26-
"symfony/http-kernel": "^5.4|^6.3|^7.0.1"
22+
"psr/http-factory": "^1.1.0",
23+
"symfony/config": "^5.4|^6.3|^7.1.1",
24+
"symfony/dependency-injection": "^5.4|^6.3|^7.1.5",
25+
"symfony/http-client": "^5.4|^6.3|^7.1.5",
26+
"symfony/http-kernel": "^5.4|^6.3|^7.1.5"
2727
},
2828
"require-dev": {
29-
"laravel/pint": "^1.13.6",
30-
"phpstan/phpstan": "^1.10.47",
29+
"laravel/pint": "^1.18.1",
30+
"phpstan/phpstan": "^1.12.6",
3131
"rector/rector": "^0.14.8",
32-
"symfony/phpunit-bridge": "^5.4|^6.3|^7.0.1"
32+
"symfony/phpunit-bridge": "^5.4|^6.3|^7.1.4"
3333
},
3434
"autoload": {
3535
"psr-4": {

src/OpenAIBundle.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,4 @@
66

77
use Symfony\Component\HttpKernel\Bundle\Bundle;
88

9-
final class OpenAIBundle extends Bundle
10-
{
11-
}
9+
final class OpenAIBundle extends Bundle {}

tests/DependencyInjection/OpenAIExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ public function testService(): void
3030
]);
3131
});
3232

33-
$container = new ContainerBuilder();
33+
$container = new ContainerBuilder;
3434
$container->set('http_client', $httpClient);
3535

36-
$extension = new OpenAIExtension();
36+
$extension = new OpenAIExtension;
3737
$extension->load([
3838
'openai' => [
3939
'api_key' => 'pk-123456789',

0 commit comments

Comments
 (0)