Skip to content

Commit 24206af

Browse files
Merge branch '3.4' into 4.2
* 3.4: SCA: minor code tweaks [Intl] Update the ICU data to 64.1 [Bridge][Twig] DebugCommand - fix escaping and filter
2 parents 9dc2299 + 98ae3cd commit 24206af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tester/TesterTrait.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ trait TesterTrait
3535
*/
3636
public function getDisplay($normalize = false)
3737
{
38+
if (null === $this->output) {
39+
throw new \RuntimeException('Output not initialized, did you execute the command before requesting the display?');
40+
}
41+
3842
rewind($this->output->getStream());
3943

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

0 commit comments

Comments
 (0)