Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces an experimental hover feature for
phpstan.elthat displays PHPStan-inferred types directly at point, without publishing diagnostics to Flycheck/Flymake.The implementation is centered on a new minor mode,
phpstan-hover-mode, and a PHP collector script derived from SanderRonde/phpstan-vscode’sTreeFetcher.php, extended for Emacs-specific UX and additional hover targets.8111d3889b8eb989501efc696046d894.mp4
Note
This new feature is not yet distributed due to MELPA recipe restrictions, please wait for the next update.
What’s New
phpstan-hover-modephpstan-copy-dumped-typenow prioritizes hover data at pointConfiguration
Enable hover mode
Customization
Copy type behavior
Acknowledgement
This feature is made possible by the work in SanderRonde/phpstan-vscode, especially
TreeFetcher.php.Huge thanks to @SanderRonde for publishing and maintaining the original implementation.
As documented in the repository:
phpstan-hover-tree-fetcher.phpis derived from upstreamTreeFetcher.php