8000 Fix test · symfony/symfony@6d0e144 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d0e144

Browse files
committed
Fix test
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent ed0a307 commit 6d0e144

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ public function __construct(array $array)
313313
parent::__construct($array, 1);
314314
}
315315

316-
public function setFlags($flags)
316+
public function setFlags($flags): void
317317
{
318318
throw new \BadMethodCallException('Calling MyArrayObject::setFlags() is forbidden');
319319
}
@@ -341,12 +341,12 @@ public function __construct(bool $throw = true)
341341

342342
final class FinalArrayIterator extends \ArrayIterator
343343
{
344-
public function serialize()
344+
public function serialize(): string
345345
{
346346
return serialize([123, parent::serialize()]);
347347
}
348348

349-
public function unserialize($data)
349+
public function unserialize($data): void
350350
{
351351
if ('' === $data) {
352352
throw new \InvalidArgumentException('Serialized data is empty.');

0 commit comments

Comments
 (0)
0