phpstan.el
phpstan.el copied to clipboard
Interface to PHPStan (PHP static analyzer)
## About - `phpstan-analyze-this-file` and `phpstan-analyze-file` are not working when using `docker` ## Reproduction - Open `test-docker.php` in this repository - `M-x phpstan-analyze-this-file` ### Output of current codes ``` -*-...
## About - `phpstan-analyze-this-file` is not working with `test.php` - Maybe the `parameter.bootstrap` configuration is old style for currently PHPStan - The `composer` installed `phpstan/phpstan:1.10.49` - We should use the...
Handle the "No files found to analyse" message that PHPStan might output *instead* of JSON in some cases. Puts a warning at the start of the file to notify the...
Use the original file name (since that is, according to the docstring, what `phpstan-normalize-path` wants) instead of creating yet another temporary file that will confuse interpreters etc.
I'm not sure if this is an issue with flycheck or the phpstan-flycheck the other php flychecks don't run. ``` emacs-lisp (flycheck-add-next-checker 'php 'phpstan) ``` That pretends it to the...
Just installed the latest phpstan-el (10-3-2020 Latest commit a1c30ca) and flycheck-phpstan. Now (phpstan-get-executable) says : ("/home/rgr/.config/composer/vendor/bin/phpstan") since I installed using "composer g require phpstan/phpstan". But its listed as disabled with...
Seems that if flycheck-phpstan finds a config file, but can't find a phpstan executable, it manages to error in a way that makes flycheck toss its cookies and never show...
## Relevant lines in my init.el: ```emacs-lisp (defun my/php-mode-hook () "Gets run on php-mode load." (make-local-variable 'company-backends) (add-to-list 'company-backends 'company-phpactor) (flycheck-select-checker 'phpstan) (setq php-mode-coding-style 'psr2 c-basic-offset 4) (when (eq 0...
Hi, thanks for this great package! I'm a bit confused about the usage of the `phpstan-working-dir` variable. I'm trying to setup phpstan.el so that I don't have to have a...