Automatically activated without phpstan.neon
For users: We strongly recommend that you always install the latest version of PHPStan.
Please read PHPStan 0.12 Released! - Ondřej Mirtes - Medium.
In previous versions, enabling flycheck-phpstan and flymake-phpstan required placing phpstan.neon.dist
or phpstan.neon
file in the project root directory.
Added
- Add
flymake-phpstan
package.- If you prefer flymake over flycheck, add
(add-hook 'php-mode-hook #'flymake-phpstan-turn-on)
to your .emacs file(init.el
).
- If you prefer flymake over flycheck, add
- Custom variable
phpstan-enable-on-no-config-file
(default:t
)- When non-
NIL
is set, detect PHP project root and enable flycheck-phpstan and flymake-phpstan even withoutphpstan.neon
.
- When non-
- Buffer-local variable
phpstan-autoload-file
- That value is passed as PHPStan
-a
option.
- That value is passed as PHPStan
Changed
- Added an explicit dependency on
php-project
feature (that bundled in php-mode package). - When
phpstan-working-dir
is set to a string, it is applied.- In previous versions that setting was ignored and
(php-project-get-root-dir)
was applied.
- In previous versions that setting was ignored and