PhpStan(erred) on Notice
Skarlso opened this issue · 6 comments
Skarlso commented
Hi!
So apparently, when phpstan is using a phpstan.neon file it outputs this:
SublimeLinter: WARNING: phpstan output:
Note: Using configuration file [...]/docroot/phpstan.neon.
Which is picked up as a warning for some reason. It shouldn't.
For the record. There is no other error / notice in the log regarding to phpstan. So I'm guessing it doesn't wait for any kind of output in case everything is okay.
ryanpcmcquen commented
@Rockstar04, any progress on this?
Rockstar04 commented
Not really... I apparently incorrectly assumed that the regex would filter these messages out. I tested the regex against this warning with RegExr and it filters it correctly.
ryanpcmcquen commented
Yeah, it doesn't apply to console output.
ryanpcmcquen commented
@Rockstar04, have you tried redirecting stderr
?
For instance, finishing the command with this?
2>/dev/null
ryanpcmcquen commented
Skarlso commented
Fantastic! Thank you very much!