We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2db3c commit 366be63Copy full SHA for 366be63
php-mode-test.el
@@ -612,6 +612,10 @@ style from Drupal."
612
(php-mode)
613
(should-not (buffer-modified-p))))
614
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
+
619
;;; php-mode-test.el ends here
620
621
;; Local Variables:
tests/issue-310.php
@@ -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