Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: use @PHP84Migration ruleset #2398

Merged
merged 1 commit into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/Command/DumpCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ public function testYaml(): void
'--server-url' => 'http://example.com/api',
]);
$expectedYaml = <<<YAML
servers:
-
url: 'http://example.com/api'
YAML;
servers:
-
url: 'http://example.com/api'
YAML;
self::assertStringContainsString($expectedYaml, $output);
}

Expand Down
12 changes: 8 additions & 4 deletions tests/Model/ModelRegistryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public function testNameCollisionsAreLogged(Type $type, array $arrayType): void
->expects(self::once())
->method('info')
->with(
'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', [
'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.',
[
'model' => [
'type' => $arrayType,
'options' => [],
Expand All @@ -65,7 +66,8 @@ public function testNameCollisionsAreLogged(Type $type, array $arrayType): void
'extra_context' => true,
],
],
]);
]
);

$registry = new ModelRegistry([], $this->createOpenApi(), []);
$registry->setLogger($logger);
Expand Down Expand Up @@ -124,7 +126,8 @@ public function testNameCollisionsAreLoggedWithAlternativeNames(): void
->expects(self::once())
->method('info')
->with(
'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.', [
'Can not assign a name for the model, the name "ModelRegistryTest" has already been taken.',
[
'model' => [
'type' => [
'class' => 'Nelmio\\ApiDocBundle\\Tests\\Model\\ModelRegistryTest',
Expand All @@ -151,7 +154,8 @@ public function testNameCollisionsAreLoggedWithAlternativeNames(): void
'groups' => ['group1'],
'serialization_context' => ['groups' => ['group1']],
],
]);
]
);

$registry = new ModelRegistry([], $this->createOpenApi(), $alternativeNames);
$registry->setLogger($logger);
Expand Down
Loading