Closed jgmdev closed 3 years ago
I suppose the interpreter doesn't ever emit any warnings (only errors)?
Right, the php built-in linter only checks for syntax errors, every other error is catch at runtime. There are static code analyzers like phan, phpstan and psalm that do report different kind of error levels but I guess a separate linter plugin would be needed to be written for each of those that can analyze entire code bases and run as a background service.
Yeah, that's fine with me. If anyone needs some extra linting functionality, they can create a separate, more advanced linter that uses one of the analyzers you linked.
I'm not familiar with PHP, I suppose the interpreter doesn't ever emit any warnings (only errors)?
Looks good otherwise.