Rockstar04/SublimeLinter-contrib-phpstan

PhpStan(erred) on Notice

Skarlso opened this issue · 6 comments

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.

@Rockstar04, any progress on this?

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.

Yeah, it doesn't apply to console output.

@Rockstar04, have you tried redirecting stderr?

For instance, finishing the command with this?
2>/dev/null

@Skarlso, I have a fix for this in #9!

Fantastic! Thank you very much!