Skip to content

Commit 9f0695e

Browse files
committed
Fix malformed when-let*
1 parent c716ba9 commit 9f0695e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lisp/php-format.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
files)
177177
return sym))
178178
(setq-local php-format-command cmd))
179-
(when-let* (tup (plist-get (cdr-safe (assq cmd php-format-formatter-alist)) :command))
179+
(when-let* ((tup (plist-get (cdr-safe (assq cmd php-format-formatter-alist)) :command)))
180180
(setq executable (car tup))
181181
(setq args (cdr tup))
182182
(setq vendor (expand-file-name executable (expand-file-name php-format-command-dir default-directory)))

lisp/php-ide.el

+4-4
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
(cond
167167
((stringp php-ide-eglot-executable) (list php-ide-eglot-executable))
168168
((listp php-ide-eglot-executable) php-ide-eglot-executable)
169-
((when-let* (command (assq php-ide-eglot-executable php-ide-lsp-command-alist))
169+
((when-let* ((command (assq php-ide-eglot-executable php-ide-lsp-command-alist)))
170170
(cond
171171
((functionp command) (funcall command))
172172
((listp command) command))))))
@@ -196,9 +196,9 @@ ACTIVATE: T is given when activeting, NIL when deactivating PHP-IDE."
196196
"Minor mode for integrate IDE-like tools."
197197
:lighter php-ide-mode-lighter
198198
(let ((ide-features php-ide-features))
199-
(when-let* (unavailable-features (cl-loop for feature in ide-features
200-
unless (assq feature php-ide-feature-alist)
201-
collect feature))
199+
(when-let* ((unavailable-features (cl-loop for feature in ide-features
200+
unless (assq feature php-ide-feature-alist)
201+
collect feature)))
202202
(user-error "%s includes unavailable PHP-IDE features. (available features are: %s)"
203203
ide-features
204204
(mapconcat (lambda (feature) (concat "'" (symbol-name feature)))

0 commit comments

Comments
 (0)