We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6587be commit a2bbd6aCopy full SHA for a2bbd6a
phpstan.el
@@ -171,9 +171,11 @@ NIL
171
;; Functions:
172
(defun phpstan-get-working-dir ()
173
"Return path to working directory of PHPStan."
174
- (if (and phpstan-working-dir (consp phpstan-working-dir) (eq 'root (car phpstan-working-dir)))
175
- (expand-file-name (cdr phpstan-working-dir) (php-project-get-root-dir))
176
- (php-project-get-root-dir)))
+ (cond
+ ((and phpstan-working-dir (consp phpstan-working-dir) (eq 'root (car phpstan-working-dir)))
+ (expand-file-name (cdr phpstan-working-dir) (php-project-get-root-dir)))
177
+ ((stringp phpstan-working-dir) phpstan-working-dir)
178
+ (t (php-project-get-root-dir))))
179
180
(defun phpstan-get-config-file ()
181
"Return path to phpstan configure file or `NIL'."
0 commit comments