Description
Feature Request
Given the following code:
class A
{
public function run()
{
(clone $this)->execute();
}
public function execute()
{
echo 'test';
}
}
On php 5.6, it will got error:
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR)
ref https://3v4l.org/ATBe3#v5.6.40
with DowngradeLevelSetList::DOWN_TO_PHP_56
, it currently skipped,
The expected change code is:
- (clone $this)->execute();
+ $object = clone $this;
+ $object->execute();
ref https://3v4l.org/kIeY1#v5.6.40
Repository demo for this https://github.com/samsonasik/test-php56