diff --git a/site-modules/core/files/emacs/src/lang/php.el b/site-modules/core/files/emacs/src/lang/php.el index fdebae1..7d7323a 100644 --- a/site-modules/core/files/emacs/src/lang/php.el +++ b/site-modules/core/files/emacs/src/lang/php.el @@ -6,9 +6,14 @@ ;; licence that can be found in the LICENCE file or at ;; https://www.practically.io/copyright/ + (use-package php-mode :ensure t - :mode "\\.php\\'") :hook ((php-mode . (lambda() (setq flycheck-local-checkers '((lsp . ((next-checkers . (php)))))))) (php-mode . lsp-deferred) (php-mode . tree-sitter-hl-mode)) + :mode + (("\\.php\\'" . php-mode) + ("\\.phpstub\\'" . php-mode))) + +(use-package flycheck-psalm :ensure t)