Skip to content

Commit 2e66132

Browse files
Upgrade YamlEncoder for Symfony 6 compatibility
1 parent 2c8ef1d commit 2e66132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PHPCR/Shell/Serializer/YamlEncoder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class YamlEncoder implements EncoderInterface, DecoderInterface
2828
*
2929
* {@inheritdoc}
3030
*/
31-
public function encode($data, $format, array $context = [])
31+
public function encode($data, $format, array $context = []): string
3232
{
3333
return Yaml::dump($data);
3434
}
@@ -43,15 +43,15 @@ public function decode($data, $format, array $context = [])
4343
/**
4444
* {@inheritdoc}
4545
*/
46-
public function supportsEncoding($format)
46+
public function supportsEncoding($format): bool
4747
{
4848
return 'yaml' === $format;
4949
}
5050

5151
/**
5252
* {@inheritdoc}
5353
*/
54-
public function supportsDecoding($format)
54+
public function supportsDecoding($format): bool
5555
{
5656
return 'yaml' === $format;
5757
}

0 commit comments

Comments
 (0)