-
-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TypeDeclaration] Separated inferred and no types (#90)
- Loading branch information
1 parent
db00e23
commit 617c04a
Showing
20 changed files
with
194 additions
and
1,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
...ass_/ClassPropertyAssignToConstructorPromotionRector/Fixture/skip_property_assign.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
namespace Rector\Tests\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector\Fixture; | ||
|
||
final class SkipPropertyAssign | ||
{ | ||
private $command; | ||
|
||
public function __construct(\Closure $command) | ||
{ | ||
$this->command = $command; | ||
} | ||
|
||
public function getCommand() | ||
{ | ||
if (!$this->command instanceof \Closure) { | ||
return $this->command; | ||
} | ||
|
||
$this->command = ($this->command)(); | ||
|
||
return $this->command; | ||
} | ||
} |
Oops, something went wrong.