We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a559b9e commit d7dffddCopy full SHA for d7dffdd
rules-tests/CodeQuality/Rector/ClassMethod/InlineArrayReturnAssignRector/Fixture/nested_dim_fetch.php.inc
@@ -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
24
25
26
27
28
29
+ public function run()
30
31
+ return ['Timmy', 'Back'];
32
33
34
35
0 commit comments