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 75abe79 commit e1ee46bCopy full SHA for e1ee46b
rules-tests/DowngradePhp81/Rector/FunctionLike/DowngradeNewInInitializerRector/Fixture/param_no_type.php.inc
@@ -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
15
16
17
18
19
20
+ public function __construct(public $o1 = null)
21
22
+ $this->o1 = $o1 ?? new stdClass;
23
24
25
26
0 commit comments