feat(php): replace php-boris with psysh (#5967)

php-boris is no longer maintained.

Fix: #5965
This commit is contained in:
Saxon Jensen 2022-01-10 09:24:21 +08:00 committed by GitHub
parent 9db71bb7a5
commit 9cba28621f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View file

@ -13,3 +13,14 @@ ignore the cache."
(require 'json) (require 'json)
(json-read-file package-file))) (json-read-file package-file)))
(puthash project-root data +php-composer-conf)))))) (puthash project-root data +php-composer-conf))))))
;;
;;; Commands
;;;###autoload
(defun +php/open-repl ()
"Open PHP REPL."
(interactive)
(psysh)
(pop-to-buffer (current-buffer)))

View file

@ -28,7 +28,7 @@
(setq php-mode-template-compatibility nil) (setq php-mode-template-compatibility nil)
(set-docsets! 'php-mode "PHP" "PHPUnit" "Laravel" "CakePHP" "CodeIgniter" "Doctrine_ORM") (set-docsets! 'php-mode "PHP" "PHPUnit" "Laravel" "CakePHP" "CodeIgniter" "Doctrine_ORM")
(set-repl-handler! 'php-mode #'php-boris) (set-repl-handler! 'php-mode #'+php/open-repl)
(set-lookup-handlers! 'php-mode :documentation #'php-search-documentation) (set-lookup-handlers! 'php-mode :documentation #'php-search-documentation)
(set-formatter! 'php-mode #'php-cs-fixer-fix) (set-formatter! 'php-mode #'php-cs-fixer-fix)
(set-ligatures! 'php-mode (set-ligatures! 'php-mode

View file

@ -1,7 +1,7 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; lang/php/packages.el ;;; lang/php/packages.el
(package! php-boris :pin "f2faebf610c917f7091f7ec0cd97645629c4f819") (package! psysh :pin "21250984ad8137aa3440ac12e52475ef03f19fcb")
(package! php-extras (package! php-extras
:recipe (:host github :repo "arnested/php-extras") :recipe (:host github :repo "arnested/php-extras")
:pin "d410c5af663c30c01d461ac476d1cbfbacb49367") :pin "d410c5af663c30c01d461ac476d1cbfbacb49367")