Skip to content

Commit 8bd216d

Browse files
committed
Add file extension .php.inc and .stub
`.php.inc` is file extension for Rector's test code. `.stub` is file extension for PHPStan's stub file.
1 parent 17fe1f8 commit 8bd216d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: php-mode.el

+1
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,7 @@ The output will appear in the buffer *PHP*."
16931693
;;;###autoload
16941694
(progn
16951695
(add-to-list 'auto-mode-alist '("/\\.php_cs\\(?:\\.dist\\)?\\'" . php-mode))
1696+
(add-to-list 'auto-mode-alist '("\\.\\(?:php\\.inc\\|stub\\)\\'" . php-mode))
16961697
(add-to-list 'auto-mode-alist '("\\.\\(?:php[s345]?\\|phtml\\)\\'" . php-mode-maybe)))
16971698

16981699
(provide 'php-mode)

0 commit comments

Comments
 (0)