From bf87a16712124ed8485e359fda321861de769d2a Mon Sep 17 00:00:00 2001 From: Carlos Afonso Date: Fri, 6 Oct 2023 18:34:46 +0100 Subject: fix(php): fix indentation for in between braces --- tests/indent/php/issue-3591.php | 1 + tests/indent/php_spec.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/indent/php/issue-3591.php b/tests/indent/php/issue-3591.php index 30b90a6a0..598948f5c 100644 --- a/tests/indent/php/issue-3591.php +++ b/tests/indent/php/issue-3591.php @@ -2,4 +2,5 @@ function test() { $array = [ + ] } diff --git a/tests/indent/php_spec.lua b/tests/indent/php_spec.lua index 2d7a88742..f7067501e 100644 --- a/tests/indent/php_spec.lua +++ b/tests/indent/php_spec.lua @@ -21,7 +21,7 @@ describe("indent PHP:", function() { on_line = 5, text = "indentation with `enter` in insert mode is not correct", indent = 4 } ) run:new_line("issue-2497.php", { on_line = 5, text = "$a =", indent = 4 }) - run:new_line("unfinished-call.php", { on_line = 6, text = "$a =", indent = 0 }) + run:new_line("unfinished-call.php", { on_line = 6, text = "$a =", indent = 4 }) run:new_line("issue-3591.php", { on_line = 4, text = "$a =", indent = 8 }) run:new_line("enum-indent.php", { on_line = 4, text = "case", indent = 4 }) end) -- cgit v1.2.3-70-g09d2