2072/PHP-Indenting-for-VIm

Function-returning-reference body indenting

h3xx opened this issue · 2 comments

h3xx commented

Given the following file:

<?php
class Foo {
    public function &bar() {
        $foo = 0;
    }
}

Indenting the class (gg=G) causes the function body and end-of-function brace to be indented one sw to the left of where it should be:

<?php
class Foo {
    public function &bar() {
    $foo = 0;
}
}
2072 commented

Thanks for the report that was easy to fix!

h3xx commented

Confirmed fixed. Thanks!