Skip to content

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented Oct 28, 2024

This is a command to insert a function to display PHPStan types into the buffer.

bd1b9dfaee1620cef3c07a574647d6c1.mp4

It is recommended to set it to a key that is easy to press, as shown below.

;; It can be typed in one stroke, but requires GUI Emacs.
(define-key php-mode-map (kbd "C-^") #'phpstan-insert-dumptype)

;;It can be typed in two strokes, but it works in the terminal.
(define-key php-mode-map (kbd "C-c ^") #'phpstan-insert-dumptype)
09c2cbc137bc23798043baa8c87c01f8.mp4

If you put C-u before the key, \PHPStan\dumpPhpDocType() will be inserted.

@zonuexe zonuexe merged commit 00bb0b3 into master Oct 28, 2024
11 of 15 checks passed
@zonuexe zonuexe deleted the feature/phpstan-insert-dumptype branch October 28, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant