Skip to content

Commit 69e9c16

Browse files
committed
Fix malformed when-let* again
1 parent 9f0695e commit 69e9c16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lisp/php-project.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ Typically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.")
267267
268268
This function is compatible with `project-find-functions'."
269269
(let ((default-directory dir))
270-
(when-let* (root (php-project-get-root-dir))
270+
(when-let* ((root (php-project-get-root-dir)))
271271
(if (file-exists-p (expand-file-name ".git" root))
272272
(cons 'vc root)
273273
(cons 'transient root)))))

Diff for: lisp/php.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ The order is reversed by calling as follows:
553553
(c-backward-token-2 1 nil))
554554
collect
555555
(cond
556-
((when-let* (bounds (php--thing-at-point-bounds-of-string-at-point))
556+
((when-let* ((bounds (php--thing-at-point-bounds-of-string-at-point)))
557557
(prog1 (buffer-substring-no-properties (car bounds) (cdr bounds))
558558
(goto-char (car bounds)))))
559559
((looking-at php-re-token-symbols)

0 commit comments

Comments
 (0)