phing icon indicating copy to clipboard operation
phing copied to clipboard

PHPStanTask does not print errors

Open tfedor opened this issue 2 years ago • 1 comments

Describe the bug With checkreturn argument it is possible for build to fail, but I can't seem to find an option to show errors. The actual command is run with 2>&1. Checking the code, it looks like in background ExecTask is being executed, which needs either output, error or passthru, but I can't find a way to pass it to the task.

Steps To Reproduce Run PHPStanTask on a code that contains error.

Expected behavior Errors should be printed to the console.

Additional context 3.0 RC6

tfedor avatar Nov 16 '23 02:11 tfedor

Would you prefer capturing the output in a property, or just activating passthru?

mrook avatar Feb 11 '24 15:02 mrook