We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef64849 commit bd39e48Copy full SHA for bd39e48
1 file changed
rules-tests/DowngradePhp81/Rector/Property/DowngradeReadonlyPropertyRector/Fixture/readonly_implicit_property_promotion.php.inc
@@ -0,0 +1,29 @@
1
+<?php
2
+
3
+namespace Rector\Tests\DowngradePhp81\Rector\Property\DowngradeReadonlyPropertyRector\Fixture;
4
5
+class ReadonlyImplicitPropertyPromotion
6
+{
7
+ public function __construct(
8
+ readonly string $foo = 'foo'
9
+ )
10
+ {
11
+ }
12
+}
13
14
+?>
15
+-----
16
17
18
19
20
21
22
23
+ public string $foo = 'foo'
24
25
26
27
28
29
0 commit comments