Skip to content

Commit 308f4ed

Browse files
committed
Removed unsafe json_encode() call
1 parent 513d65e commit 308f4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Formatter/JsonFormatter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Roave\BackwardCompatibility\Git\CheckedOutRepository;
1010
use Symfony\Component\Console\Output\OutputInterface;
1111

12-
use function json_encode;
12+
use function Psl\Json\encode;
1313

1414
/** @internal */
1515
final class JsonFormatter implements OutputFormatter
@@ -34,6 +34,6 @@ public function write(Changes $changes): void
3434
];
3535
}
3636

37-
$this->output->writeln(json_encode(['errors' => $result]));
37+
$this->output->writeln(encode(['errors' => $result]));
3838
}
3939
}

0 commit comments

Comments
 (0)