MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PHPhelp/comments/1xa95ao/symfony_console_stderr/
r/PHPhelp • u/trymeouteh • Oct 19 '26
1 comment sorted by
1
getErrorOutput() only exists on ConsoleOutputInterface, not OutputInterface. So check `$output instanceof ConsoleOutputInterface` first. In CommandTester, set the option `capture_stderr_separately` to true, then call getErrorOutput() on the tester.
1
u/SoftwareNegative8783 Oct 20 '26
getErrorOutput() only exists on ConsoleOutputInterface, not OutputInterface. So check `$output instanceof ConsoleOutputInterface` first. In CommandTester, set the option `capture_stderr_separately` to true, then call getErrorOutput() on the tester.