-
-
Notifications
You must be signed in to change notification settings - Fork 440
Expand file tree
/
Copy pathfixture.php.inc
More file actions
34 lines (25 loc) · 748 Bytes
/
fixture.php.inc
File metadata and controls
34 lines (25 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
namespace Rector\Tests\Issues\IssuePropertyPromoRemoveDelegatingParent\Fixture;
use Rector\Tests\Issues\IssuePropertyPromoRemoveDelegatingParent\Source\SomeParentWithEmptyConstruct;
class Fixture extends SomeParentWithEmptyConstruct
{
private string $prop;
public function __construct(string $prop)
{
$this->prop = $prop;
parent::__construct();
}
}
?>
-----
<?php
namespace Rector\Tests\Issues\IssuePropertyPromoRemoveDelegatingParent\Fixture;
use Rector\Tests\Issues\IssuePropertyPromoRemoveDelegatingParent\Source\SomeParentWithEmptyConstruct;
class Fixture extends SomeParentWithEmptyConstruct
{
public function __construct(private string $prop)
{
parent::__construct();
}
}
?>