Skip to content

Commit e1ee46b

Browse files
committed
fix
1 parent 75abe79 commit e1ee46b

File tree

1 file changed

+26
-0
lines changed
  • rules-tests/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector/Fixture

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
namespace Rector\Tests\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector\Fixture;
4+
5+
final class ParamNoType
6+
{
7+
public function __construct(public $o1 = new stdClass)
8+
{
9+
}
10+
}
11+
12+
?>
13+
-----
14+
<?php
15+
16+
namespace Rector\Tests\DowngradePhp81\Rector\FunctionLike\DowngradeNewInInitializerRector\Fixture;
17+
18+
final class ParamNoType
19+
{
20+
public function __construct(public $o1 = null)
21+
{
22+
$this->o1 = $o1 ?? new stdClass;
23+
}
24+
}
25+
26+
?>

0 commit comments

Comments
 (0)