Skip to content

Commit 713f0dc

Browse files
committed
[TypeDeclarationDocblocks] Handle false and true should change to bool on DocblockReturnArrayFromDirectArrayInstanceRector
1 parent ce46023 commit 713f0dc

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)