Skip to content

Commit d7dffdd

Browse files
committed
add fixture
1 parent a559b9e commit d7dffdd

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace Rector\Tests\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector\Fixture;
4+
5+
final class NestedDimFetch
6+
{
7+
public static function getData(): array
8+
{
9+
$data = [];
10+
11+
$data['info'] = [
12+
'one' => 123,
13+
];
14+
15+
$data['info']['nested'] = 123;
16+
17+
return $data;
18+
}
19+
}
20+
21+
?>
22+
-----
23+
<?php
24+
25+
namespace Rector\Tests\CodeQuality\Rector\ClassMethod\InlineArrayReturnAssignRector\Fixture;
26+
27+
final class NestedDimFetch
28+
{
29+
public function run()
30+
{
31+
return ['Timmy', 'Back'];
32+
}
33+
}
34+
35+
?>

0 commit comments

Comments
 (0)