Skip to content

Releases: emacs-php/phpstan.el

Version 0.8.2

31 Mar 19:22
Compare
Choose a tag to compare

Fix compilation errors on Emacs 30

Full Changelog: 0.8.1...0.8.2

Version 0.8.1

31 Mar 18:29
Compare
Choose a tag to compare

Added

  • Add phpstan-enable-remote-experimental custom variable for activate PHPStan on TRAMP.
  • Add support for php-ts-mode.
  • Add phpstan-check-current-file command to check the current file.
  • Add phpstan-run-phpstan command to check specified directories or files.
  • Add phpstan-config-file variable to customize phpstan configurations.

Changed

  • Refactored phpstan-check-buffer command for improved performance.
  • Improved logic for detecting phpstan executable.

Removed

  • Drop support for Emacs 24.3.

Fixed

  • Fixed issue where phpstan error messages were not parsed correctly.
  • Fixed issue where phpstan.el would hang under certain circumstances.
  • Minor bug fixes and performance improvements.

New Contributors

Full Changelog: 0.7.2...0.8.1

Version 0.7.0

04 Apr 11:44
Compare
Choose a tag to compare

Added

  • Add phpstan-analyze-project command.
  • Add phpstan-analyze-this-file command.
  • Add phpstan.dist.neon to phpstan-get-config-file as PHPStan config files.
  • Add phpstan-pro command to launch PHPStan Pro.
  • Add phpstan-find-baseline-file command.
  • Add phpstan-generate-baseline-file command.

Changed

  • Make Flycheck analyze the original file directly instead of temporary files when there are no changes to the file.
  • [Internal] Use JSON format for flycheck-phpstan.
    • Support 💡 tips

Version 0.6.0

14 Jul 18:07
0869b15
Compare
Choose a tag to compare
Merge pull request #41 from emacs-php/release/v0.6.0

Bump version 0.6.0

Automatically activated without phpstan.neon

11 Apr 08:16
Compare
Choose a tag to compare

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).
  • 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 without phpstan.neon.
  • Buffer-local variable phpstan-autoload-file
    • That value is passed as PHPStan -a option.

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.

v0.2.2

21 Jul 19:53
09102b0
Compare
Choose a tag to compare

Changed

  • Change priority of phpstan-executable search and add type check. #7 (by @kermorgant)
  • Fixed that setting of phpstan installed specific to the project was not working #10 (by @kwvanderlinde)