From 051e6ed56ac2063f3d32ba414aa82b1234ce8109 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 31 May 2025 07:12:12 +0700 Subject: [PATCH 1/3] [Test] Add more test fixture for downgrade named argumetn with trailing comma --- .../named_argument_trailing_comma3.php.inc | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/Set/Fixture/named_argument_trailing_comma3.php.inc diff --git a/tests/Set/Fixture/named_argument_trailing_comma3.php.inc b/tests/Set/Fixture/named_argument_trailing_comma3.php.inc new file mode 100644 index 00000000..6e31e7da --- /dev/null +++ b/tests/Set/Fixture/named_argument_trailing_comma3.php.inc @@ -0,0 +1,37 @@ +run( + bar: 'bar', + baz: 'baz', + foo: 'foo', + ); + } +} + +?> +----- +run('foo', 'bar', 'baz'); + } +} + +?> From 2ce9aa9851857c61eb9a2ff4d9649a7b5971bfda Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 31 May 2025 07:14:08 +0700 Subject: [PATCH 2/3] extract multiple fixture --- .../named_argument_trailing_comma.php.inc | 7 ---- .../named_argument_trailing_comma2.php.inc | 36 +++++++++++++++++++ 2 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 tests/Set/Fixture/named_argument_trailing_comma2.php.inc diff --git a/tests/Set/Fixture/named_argument_trailing_comma.php.inc b/tests/Set/Fixture/named_argument_trailing_comma.php.inc index 8efb66cc..dbd17312 100644 --- a/tests/Set/Fixture/named_argument_trailing_comma.php.inc +++ b/tests/Set/Fixture/named_argument_trailing_comma.php.inc @@ -13,11 +13,6 @@ final class NamedArgumentTrailingComma foo: 'foo', bar: 'bar', ); - - $this->run( - bar: 'bar', - foo: 'foo', - ); } } @@ -35,8 +30,6 @@ final class NamedArgumentTrailingComma public function execute() { $this->run('foo', 'bar'); - - $this->run('foo', 'bar'); } } diff --git a/tests/Set/Fixture/named_argument_trailing_comma2.php.inc b/tests/Set/Fixture/named_argument_trailing_comma2.php.inc new file mode 100644 index 00000000..516d0a8c --- /dev/null +++ b/tests/Set/Fixture/named_argument_trailing_comma2.php.inc @@ -0,0 +1,36 @@ +run( + bar: 'bar', + foo: 'foo', + ); + } +} + +?> +----- +run('foo', 'bar'); + } +} + +?> From 242044e95037c0abc55a89e3b0ea3fbed1c77a3b Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Sat, 31 May 2025 07:16:45 +0700 Subject: [PATCH 3/3] more --- .../named_argument_trailing_comma4.php.inc | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/Set/Fixture/named_argument_trailing_comma4.php.inc diff --git a/tests/Set/Fixture/named_argument_trailing_comma4.php.inc b/tests/Set/Fixture/named_argument_trailing_comma4.php.inc new file mode 100644 index 00000000..1631bd52 --- /dev/null +++ b/tests/Set/Fixture/named_argument_trailing_comma4.php.inc @@ -0,0 +1,37 @@ +run( + baz: 'baz', + foo: 'foo', + bar: 'bar', + ); + } +} + +?> +----- +run('foo', 'bar', 'baz'); + } +} + +?>