Skip to content
Snippets Groups Projects

Resolve #3415995 "D10 symphony encoder"

2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -41,7 +41,7 @@ class Doc implements EncoderInterface {
/**
* {@inheritdoc}
*/
public function encode($data, $format, array $context = []) {
public function encode(mixed $data, string $format, array $context = []): string {
switch (gettype($data)) {
case 'array':
// Nothing to do.
@@ -154,7 +154,7 @@ class Doc implements EncoderInterface {
/**
* {@inheritdoc}
*/
public function supportsEncoding($format) {
public function supportsEncoding(string $format): bool {
return $format === static::$format;
}
Loading