Skip to content

Commit 3d21da7

Browse files
committed
Update PHPUnit
1 parent 87b8842 commit 3d21da7

5 files changed

Lines changed: 13 additions & 9 deletions

File tree

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@
1515
}
1616
},
1717
"require": {
18-
"php": "^8.1.0",
18+
"php": "^8.4.0",
1919
"symfony/yaml": "^6 || ^7",
20-
"devizzent/cebe-php-openapi": "^1.1.2"
20+
"devizzent/cebe-php-openapi": "^1.1.5"
2121
},
2222
"require-dev": {
23-
"phpunit/phpunit": "^10.5.36",
2423
"phpstan/phpstan": "^1.12.6",
24+
"phpunit/phpunit": "^12.5.11",
2525
"squizlabs/php_codesniffer": "^3.5.4",
2626
"mikey179/vfsstream": "^1.6.7",
2727
"infection/infection": "^0.29.7"

src/Exception/InvalidOpenAPI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ public static function mustSpecifyItemsForArrayType(
424424

425425
return new self($message);
426426
}
427-
427+
428428
public static function responseCodeMustBeNumericOrDefault(
429429
Identifier $identifier,
430430
string $code,

tests/MembraneReaderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,10 @@ public function itResolvesExternalReferencesFromAbsoluteFilePath(
270270

271271
#[Test]
272272
#[DataProvider('provideOpenAPIWithExternalReference')]
273-
public function itCannotResolveExternalReferenceFromString(string $openAPIString): void
274-
{
273+
public function itCannotResolveExternalReferenceFromString(
274+
string $openAPIString,
275+
string $_,
276+
): void {
275277
self::expectExceptionObject(CannotRead::cannotResolveExternalReferencesFromString());
276278

277279
(new MembraneReader([OpenAPIVersion::Version_3_0]))

tests/ReaderTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,10 @@ public function itResolvesExternalReferencesFromAbsoluteFilePath(
447447

448448
#[Test]
449449
#[DataProvider('provideOpenAPIWithExternalReference')]
450-
public function itCannotResolveExternalReferenceFromString(string $openAPIString,): void
451-
{
450+
public function itCannotResolveExternalReferenceFromString(
451+
string $openAPIString,
452+
string $_,
453+
): void {
452454
self::expectExceptionObject(CannotRead::cannotResolveExternalReferencesFromString());
453455

454456
(new Reader([OpenAPIVersion::Version_3_0]))

tests/fixtures/Helper/PartialHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public static function createOperation(
114114
?string $operationId = 'test-id',
115115
array $servers = [],
116116
array $parameters = [],
117-
RequestBody $requestBody = null,
117+
?RequestBody $requestBody = null,
118118
array $responses = [],
119119
): Operation {
120120
return new Operation(

0 commit comments

Comments
 (0)