mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 05:48:21 +01:00
[PHP 8.0] Skip accessed variable before property assign (#5008)
Co-authored-by: Jan Kuchař <honza@kucharovi.cz>
This commit is contained in:
parent
f49c14618a
commit
8de8cddaf6
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\Php80\Tests\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture;
|
||||
|
||||
class SkipAccessedVariableBeforeAssign
|
||||
{
|
||||
public $x;
|
||||
|
||||
function __construct(string $x) {
|
||||
$x = 'preprended-' . $x;
|
||||
$this->x = $x;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user