Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions tests/Set/Fixture/named_argument_trailing_comma.php.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ final class NamedArgumentTrailingComma
foo: 'foo',
bar: 'bar',
);

$this->run(
bar: 'bar',
foo: 'foo',
);
}
}

Expand All @@ -35,8 +30,6 @@ final class NamedArgumentTrailingComma
public function execute()
{
$this->run('foo', 'bar');

$this->run('foo', 'bar');
}
}

Expand Down
36 changes: 36 additions & 0 deletions tests/Set/Fixture/named_argument_trailing_comma2.php.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma2
{
public function run(string $foo, string $bar)
{}

public function execute()
{
$this->run(
bar: 'bar',
foo: 'foo',
);
}
}

?>
-----
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma2
{
public function run(string $foo, string $bar)
{}

public function execute()
{
$this->run('foo', 'bar');
}
}

?>
37 changes: 37 additions & 0 deletions tests/Set/Fixture/named_argument_trailing_comma3.php.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma3
{
public function run(string $foo, string $bar, string $baz)
{}

public function execute()
{
$this->run(
bar: 'bar',
baz: 'baz',
foo: 'foo',
);
}
}

?>
-----
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma3
{
public function run(string $foo, string $bar, string $baz)
{}

public function execute()
{
$this->run('foo', 'bar', 'baz');
}
}

?>
37 changes: 37 additions & 0 deletions tests/Set/Fixture/named_argument_trailing_comma4.php.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma4
{
public function run(string $foo, string $bar, string $baz)
{}

public function execute()
{
$this->run(
baz: 'baz',
foo: 'foo',
bar: 'bar',
);
}
}

?>
-----
<?php

namespace Rector\Tests\Set\Fixture;

final class NamedArgumentTrailingComma4
{
public function run(string $foo, string $bar, string $baz)
{}

public function execute()
{
$this->run('foo', 'bar', 'baz');
}
}

?>