Skip to content

Commit 98ae3cd

Browse files
SpacePossumfabpot
authored andcommitted
[Bridge][Twig] DebugCommand - fix escaping and filter
1 parent 71ce77f commit 98ae3cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tester/CommandTester.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public function execute(array $input, array $options = [])
8787
*/
8888
public function getDisplay($normalize = false)
8989
{
90+
if (null === $this->output) {
91+
throw new \RuntimeException('Output not initialized, did you execute the command before requesting the display?');
92+
}
93+
9094
rewind($this->output->getStream());
9195

9296
$display = stream_get_contents($this->output->getStream());

0 commit comments

Comments
 (0)