All notable changes of the phpstan.el are documented in this file using the Keep a Changelog principles.
- [experimental] Add new
phpstan-hover.el.- Add
phpstan-hover-modeminor 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, andyield from. - PHPDoc type collection in hover data and display integration when available.
- Hover support for variables, assignments, function/method/static calls, constants, class constants,
- Add
phpstan-hover-show-kind-labelcustom variable to toggle verbose labels likereturn:/yield:in hover text. - Add
phpstan-hover-message-prefixcustom variable preset choices, including emoji labels.
- Add
phpstan-copy-dumped-typenow prefers PHPDoc type from hover data by default, and can copy non-PHPDoc type with a prefix argument (C-u).
phpstan-copy-dumped-typecommand now prioritizesphpstan-hover-modedata at point before falling back to dumped-type messages.
- Fix
phpstan-get-command-argsto keep:optionsin the correct position and pass target arguments correctly when editor mode options are used.
- Add
phpstan-copy-dumped-typecommand to copy the nearest dumped type fromPHPStan\dumpType()orPHPStan\dumpPhpDocType()messages - Add support for PHPStan Editor Mode
- Improved error handling when no JSON response is returned
- Fixed erroneous dependency from
flymake-phpstanto Flycheck functions
- Drop support for Emacs 25.3
- Fix compilation errors on Emacs 30
- Add
phpstan-enable-remote-experimentalcustom variable for activate PHPStan on TRAMP. - Add support for
php-ts-mode. - Add
phpstan-insert-dumptypecommand - Add
phpstan-insert-ignorecommand
- Refactored
phpstan-check-buffercommand for improved performance. - Improved logic for detecting phpstan executable.
- Drop support for Emacs 24.3.
- Add
phpstan-analyze-this-filecommand - Add
phpstan.dist.neontophpstan-get-config-fileas PHPStan config files. - Add
phpstan-procommand to launch PHPStan Pro. - Add
phpstan-find-baseline-filecommand. - Add
phpstan-generate-baseline-filecommand.
- 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