Skip to content

Commit ff211ba

Browse files
author
Steven Rémot
committed
Make classmap configuration compatible with json output
1 parent cb938de commit ff211ba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cask

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
(package "ede-php-autoload" "0.2.0" "PHP autoloading implementation for Semantic")
44

5-
(files "*.el")
5+
(files "*.el" "ede-php-autoload/**/*.el")
66

77
(development
88
(depends-on "ert-runner"))

ede-php-autoload/class-loader/classmap.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ prefix."
8686
(progn
8787
(setq class-hash (make-hash-table :test 'equal))
8888
(dolist (pair classes)
89-
(puthash (car pair) (cdr pair) class-hash)))
89+
(puthash (format "%s" (car pair)) (cdr pair) class-hash)))
9090
(setq class-hash classes))
9191

9292
(ede-php-autoload-classmap-class-loader "Classmap" :classes class-hash)))

test/test-helper.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
("MultiDirNs" . ("src/MultiDirNs1" "src/MultiDirNs2"))
5959
("Psr4Split\\Ns1" . "src/Psr4Split/Ns1")
6060
("Psr4Split\\Ns2" . "src/Psr4Split/Ns2"))
61-
:class-map (("ClassMapNs\\MyClass" . "src/ClassMapNs/MyClass.php")))
61+
:class-map ((ClassMapNs\\MyClass . "src/ClassMapNs/MyClass.php")))
6262
:include-path '(".")
6363
:system-include-path '("/usr/share/php"))
6464

0 commit comments

Comments
 (0)