Skip to content

Commit 004e181

Browse files
authored
Apply suggestions from code review
1 parent d751529 commit 004e181

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/Symfony/Component/VarExporter/Tests/InstantiatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function testFailingInstantiation(string $class)
3535
Instantiator::instantiate($class);
3636
}
3737

38-
public static function provideFailingInstantiation(): iterable
38+
public static function provideFailingInstantiation()
3939
{
4040
yield ['ReflectionClass'];
4141
yield ['SplHeap'];

src/Symfony/Component/Yaml/Tests/InlineTest.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public function testParseUnquotedScalarStartingWithScalarIndicator($indicator)
291291
Inline::parse(sprintf('{ foo: %sfoo }', $indicator));
292292
}
293293

294-
public static function getScalarIndicators(): array
294+
public static function getScalarIndicators()
295295
{
296296
return [['|'], ['>'], ['%']];
297297
}
@@ -304,7 +304,7 @@ public function testIsHash($array, $expected)
304304
$this->assertSame($expected, Inline::isHash($array));
305305
}
306306

307-
public static function getDataForIsHash(): array
307+
public static function getDataForIsHash()
308308
{
309309
return [
310310
[[], false],
@@ -314,7 +314,7 @@ public static function getDataForIsHash(): array
314314
];
315315
}
316316

317-
public static function getTestsForParse(): array
317+
public static function getTestsForParse()
318318
{
319319
return [
320320
['', ''],
@@ -403,7 +403,7 @@ public static function getTestsForParse(): array
403403
];
404404
}
405405

406-
public static function getTestsForParseWithMapObjects(): array
406+
public static function getTestsForParseWithMapObjects()
407407
{
408408
return [
409409
['', ''],
@@ -484,7 +484,7 @@ public static function getTestsForParseWithMapObjects(): array
484484
];
485485
}
486486

487-
public static function getTestsForDump(): array
487+
public static function getTestsForDump()
488488
{
489489
return [
490490
['null', null],
@@ -769,7 +769,7 @@ public function testParseInvalidBinaryData($data, $expectedMessage)
769769
Inline::parse($data);
770770
}
771771

772-
public static function getInvalidBinaryData(): array
772+
public static function getInvalidBinaryData()
773773
{
774774
return [
775775
'length not a multiple of four' => ['!!binary "SGVsbG8d29ybGQ="', '/The normalized base64 encoded data \(data without whitespace characters\) length must be a multiple of four \(\d+ bytes given\)/'],
@@ -1022,7 +1022,7 @@ public function testUnquotedExclamationMarkThrows(string $value)
10221022
Inline::parse($value);
10231023
}
10241024

1025-
public static function unquotedExclamationMarkThrowsProvider(): array
1025+
public static function unquotedExclamationMarkThrowsProvider()
10261026
{
10271027
return [
10281028
['!'],
@@ -1054,7 +1054,7 @@ public function testQuotedExclamationMark($expected, string $value)
10541054
}
10551055

10561056
// This provider should stay consistent with unquotedExclamationMarkThrowsProvider
1057-
public static function quotedExclamationMarkProvider(): array
1057+
public static function quotedExclamationMarkProvider()
10581058
{
10591059
return [
10601060
['!', '"!"'],

0 commit comments

Comments
 (0)