You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.org
+8
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,14 @@ Insert a ~@phpstan-ignore~ tag to suppress any PHPStan errors on the current lin
105
105
By default it inserts the tag on the previous line, but if there is already a tag at the end of the current line or on the previous line, the identifiers will be appended there.
106
106
107
107
If there is no existing tag and ~C-u~ is pressed before the command, it will be inserted at the end of the line.
108
+
*** Command ~phpstan-copy-dumped-type~
109
+
Copy the nearest dumped type message from PHPStan's output.
110
+
111
+
This command looks for messages like ~Dumped type: int|string|null~ reported by ~PHPStan\dumpType()~ or ~PHPStan\dumpPhpDocType()~, and copies the type string to the kill ring.
112
+
113
+
If there are multiple dumped types in the buffer, it selects the one closest to the current line.
114
+
115
+
If no dumped type messages are found, the command signals an error.
108
116
** API
109
117
Most variables defined in this package are buffer local. If you want to set it for multiple projects, use [[https://www.gnu.org/software/emacs/manual/html_node/elisp/Default-Value.html][setq-default]].
0 commit comments