Skip to content

Latest commit

 

History

History
84 lines (51 loc) · 2.67 KB

File metadata and controls

84 lines (51 loc) · 2.67 KB

Changelog

All notable changes of the phpstan.el are documented in this file using the Keep a Changelog principles.

Unreleased

Added

  • [experimental] Add new phpstan-hover.el.
    • Add phpstan-hover-mode minor mode to show PHPStan type info at point without publishing diagnostics to Flycheck/Flymake.
      • Hover support for variables, assignments, function/method/static calls, constants, class constants, return, yield, and yield from.
      • PHPDoc type collection in hover data and display integration when available.
    • Add phpstan-hover-show-kind-label custom variable to toggle verbose labels like return: / yield: in hover text.
    • Add phpstan-hover-message-prefix custom variable preset choices, including emoji labels.
  • phpstan-copy-dumped-type now prefers PHPDoc type from hover data by default, and can copy non-PHPDoc type with a prefix argument (C-u).

Changed

  • phpstan-copy-dumped-type command now prioritizes phpstan-hover-mode data at point before falling back to dumped-type messages.

Fixed

  • Fix phpstan-get-command-args to keep :options in the correct position and pass target arguments correctly when editor mode options are used.

[0.9.0]

Added

  • Add phpstan-copy-dumped-type command to copy the nearest dumped type from PHPStan\dumpType() or PHPStan\dumpPhpDocType() messages
  • Add support for PHPStan Editor Mode

Changed

  • Improved error handling when no JSON response is returned

Fixed

  • Fixed erroneous dependency from flymake-phpstan to Flycheck functions

Removed

  • Drop support for Emacs 25.3

[0.8.2]

Fixed

  • Fix compilation errors on Emacs 30

[0.8.1]

Added

  • Add phpstan-enable-remote-experimental custom variable for activate PHPStan on TRAMP.
  • Add support for php-ts-mode.
  • Add phpstan-insert-dumptype command
  • Add phpstan-insert-ignore command

Changed

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

Removed

  • Drop support for Emacs 24.3.

[0.7.0]

Added

  • 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