Skip to content

Commit d89e0e2

Browse files
Remove needless calls to defined()
1 parent e9c4ff3 commit d89e0e2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Extension/YamlExtension.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ public function encode(mixed $input, int $inline = 0, int $dumpObjects = 0): str
3636

3737
$dumper ??= new YamlDumper();
3838

39-
if (\defined('Symfony\Component\Yaml\Yaml::DUMP_OBJECT')) {
40-
return $dumper->dump($input, $inline, 0, $dumpObjects);
41-
}
42-
43-
return $dumper->dump($input, $inline, 0, false, $dumpObjects);
39+
return $dumper->dump($input, $inline, 0, $dumpObjects);
4440
}
4541

4642
public function dump(mixed $value, int $inline = 0, int $dumpObjects = 0): string

0 commit comments

Comments
 (0)