Skip to content

Commit 725f15d

Browse files
committed
Modify arguments of phpactor--action-input-parameters that accepts type
1 parent df67e0e commit 725f15d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

phpactor.el

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,10 @@
157157
(replace_file_source . phpactor-action-replace-file-source)))
158158

159159
;; Helper functions:
160-
(cl-defun phpactor--action-input-parameters (type &key default label choices)
160+
(cl-defun phpactor--action-input-parameters (value-type &key default label choices type)
161161
"Request user input by parameters."
162-
(let ((use-dialog-box nil))
162+
(let ((use-dialog-box nil)
163+
(type (if type (intern type) value-type)))
163164
(cl-case type
164165
(file (read-file-name label nil default))
165166
(text (read-string label default))

0 commit comments

Comments
 (0)