Skip to content

Commit 366be63

Browse files
committed
Add test case for issue 310
1 parent fd2db3c commit 366be63

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

php-mode-test.el

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,10 @@ style from Drupal."
612612
(php-mode)
613613
(should-not (buffer-modified-p))))
614614

615+
(ert-deftest php-mode-test-issue-310 ()
616+
"Proper indentation after function with return type."
617+
(with-php-mode-test ("issue-310.php" :indent t :magic t)))
618+
615619
;;; php-mode-test.el ends here
616620

617621
;; Local Variables:

tests/issue-310.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
function a() : string {
4+
return 'world';
5+
}
6+
echo 'hello'; // ###php-mode-test### ((indent 0))

0 commit comments

Comments
 (0)