We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
json_encode()
1 parent 513d65e commit 308f4edCopy full SHA for 308f4ed
1 file changed
src/Formatter/JsonFormatter.php
@@ -9,7 +9,7 @@
9
use Roave\BackwardCompatibility\Git\CheckedOutRepository;
10
use Symfony\Component\Console\Output\OutputInterface;
11
12
-use function json_encode;
+use function Psl\Json\encode;
13
14
/** @internal */
15
final class JsonFormatter implements OutputFormatter
@@ -34,6 +34,6 @@ public function write(Changes $changes): void
34
];
35
}
36
37
- $this->output->writeln(json_encode(['errors' => $result]));
+ $this->output->writeln(encode(['errors' => $result]));
38
39
0 commit comments