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 526f0b7 commit 968b8feCopy full SHA for 968b8fe
phpstan.el
@@ -70,9 +70,14 @@
70
(eq 'root (car phpstan-configure-file)))
71
(expand-file-name (cdr phpstan-configure-file) (php-project-get-root-dir))
72
phpstan-configure-file)
73
- (let ((dir (locate-dominating-file "phpstan.neon" default-directory)))
+ (let ((dir (or (locate-dominating-file "phpstan.neon" default-directory)
74
+ (locate-dominating-file "phpstan.neon.dist" default-directory)))
75
+ file)
76
(when dir
- (expand-file-name "phpstan.neon" dir)))))
77
+ (setq file (expand-file-name "phpstan.neon.dist" dir))
78
+ (if (file-exists-p file)
79
+ file
80
+ (expand-file-name "phpstan.neon" dir))))))
81
82
(defun phpstan-get-level ()
83
"Return path to phpstan configure file or `NIL'."
0 commit comments