mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 20:23:49 +01:00
commit
4f826fb13a
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\MagicallyAssignedFetch;
|
||||
|
||||
class WriteOnly
|
||||
{
|
||||
private $seemsUnused;
|
||||
|
||||
public function getValue()
|
||||
{
|
||||
foreach ([1, 2, 3] as $key) {
|
||||
$this->seemsUnused[] = 'foo';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
-----
|
||||
<?php
|
||||
|
||||
namespace Rector\DeadCode\Tests\Rector\Property\RemoveUnusedPrivatePropertyRector\MagicallyAssignedFetch;
|
||||
|
||||
class WriteOnly
|
||||
{
|
||||
public function getValue()
|
||||
{
|
||||
foreach ([1, 2, 3] as $key) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user