[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/phpinspect e436b3fae0: Ignore non-existant directories
From: |
ELPA Syncer |
Subject: |
[elpa] externals/phpinspect e436b3fae0: Ignore non-existant directories in psr4 autoload config |
Date: |
Sun, 25 Feb 2024 09:58:31 -0500 (EST) |
branch: externals/phpinspect
commit e436b3fae05bc558848a7d266b913d9193c07029
Author: Hugo Thunnissen <devel@hugot.nl>
Commit: Hugo Thunnissen <devel@hugot.nl>
Ignore non-existant directories in psr4 autoload config
---
phpinspect-autoload.el | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/phpinspect-autoload.el b/phpinspect-autoload.el
index 1b5730e1be..49f0d5b398 100644
--- a/phpinspect-autoload.el
+++ b/phpinspect-autoload.el
@@ -139,12 +139,13 @@ bareword typenames."))
(prefix (phpinspect-psr4-prefix strat))
type-fqn)
(dolist (dir (phpinspect-psr4-directories strat))
- (dolist (file (phpinspect-fs-directory-files-recursively fs dir
"\\.php$"))
- (setq type-fqn (phpinspect-filename-to-typename dir file prefix))
- (phpinspect-autoloader-put-type-bag al type-fqn)
- (puthash type-fqn file typehash)
- (when own
- (puthash type-fqn file own-typehash))))))
+ (when (phpinspect-fs-file-directory-p fs dir)
+ (dolist (file (phpinspect-fs-directory-files-recursively fs dir
"\\.php$"))
+ (setq type-fqn (phpinspect-filename-to-typename dir file prefix))
+ (phpinspect-autoloader-put-type-bag al type-fqn)
+ (puthash type-fqn file typehash)
+ (when own
+ (puthash type-fqn file own-typehash)))))))
(cl-defmethod phpinspect-al-strategy-execute ((strat phpinspect-psr0))
(let* ((fs (phpinspect-psr0-fs strat))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/phpinspect e436b3fae0: Ignore non-existant directories in psr4 autoload config,
ELPA Syncer <=