Skip to content

Commit 7d9853f

Browse files
committed
add fixture
1 parent 43d1eae commit 7d9853f

File tree

1 file changed

+33
-0
lines changed
  • rules-tests/TypeDeclarationDocblocks/Rector/ClassMethod/DocblockReturnArrayFromDirectArrayInstanceRector/Fixture

1 file changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector\Fixture;
4+
5+
/**
6+
* @return array
7+
*/
8+
function overrideBareArray()
9+
{
10+
return [
11+
'first' => [true],
12+
'second' => [false],
13+
];
14+
}
15+
16+
?>
17+
-----
18+
<?php
19+
20+
namespace Rector\Tests\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector\Fixture;
21+
22+
/**
23+
* @return array<string, bool[]>
24+
*/
25+
function overrideBareArray()
26+
{
27+
return [
28+
'first' => [true],
29+
'second' => [false],
30+
];
31+
}
32+
33+
?>

0 commit comments

Comments
 (0)