Rector changes and immplementations of required methods

This commit is contained in:
2025-05-22 17:47:07 +02:00
parent 053b92b77c
commit 17db59d221
1138 changed files with 2656 additions and 2616 deletions

View File

@@ -94,7 +94,7 @@ final class DocGenEncoderTest extends TestCase
];
}
public function testEmbeddedLoopsThrowsException()
public function testEmbeddedLoopsThrowsException(): void
{
$this->expectException(UnexpectedValueException::class);
@@ -118,7 +118,7 @@ final class DocGenEncoderTest extends TestCase
/**
* @dataProvider generateEncodeData
*/
public function testEncode(mixed $expected, mixed $data, string $msg)
public function testEncode(mixed $expected, mixed $data, string $msg): void
{
$generated = $this->encoder->encode($data, 'docgen');
$this->assertEquals($expected, $generated, $msg);

View File

@@ -38,7 +38,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$this->normalizer = self::getContainer()->get(NormalizerInterface::class);
}
public function testChangeContextOnAttribute()
public function testChangeContextOnAttribute(): void
{
$object = new TestableParentClass();
$actual = $this->normalizer->normalize(
@@ -81,7 +81,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$this->assertArrayNotHasKey('baz', $actual['child']);
}
public function testNormalizableBooleanPropertyOrMethodOnNull()
public function testNormalizableBooleanPropertyOrMethodOnNull(): void
{
$actual = $this->normalizer->normalize(null, 'docgen', [AbstractNormalizer::GROUPS => ['docgen:read'], 'docgen:expects' => TestableClassWithBool::class]);
@@ -94,7 +94,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$this->assertEquals($expected, $actual);
}
public function testNormalizationBasic()
public function testNormalizationBasic(): void
{
$scope = new Scope();
$scope->setName(['fr' => 'scope']);
@@ -110,7 +110,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$this->assertEquals($expected, $normalized, 'test normalization fo a scope');
}
public function testNormalizeBooleanPropertyOrMethod()
public function testNormalizeBooleanPropertyOrMethod(): void
{
$testable = new TestableClassWithBool();
$testable->foo = false;
@@ -126,7 +126,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
$this->assertEquals($expected, $actual);
}
public function testNormalizeNull()
public function testNormalizeNull(): void
{
$actual = $this->normalizer->normalize(null, 'docgen', [AbstractNormalizer::GROUPS => ['docgen:read'], 'docgen:expects' => Scope::class]);
$expected = [