-
-
Notifications
You must be signed in to change notification settings - Fork 339
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DX] Add FileProcessResult + kick of collectors (#4947)
- Loading branch information
1 parent
9a322af
commit 27078e7
Showing
21 changed files
with
277 additions
and
254 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
2 files with changes | ||
==================== | ||
|
||
1) src/UselessVarTag.php:1 | ||
1) src/RenameDocblock.php:0 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
<?php | ||
|
||
final class UselessVarTag | ||
/** | ||
- * @param DateTime $someOldClass | ||
+ * @param \DateTimeInterface $someOldClass | ||
*/ | ||
function someFunction($someOldClass) | ||
{ | ||
- /** | ||
- * @var string | ||
- */ | ||
public string $name = 'name'; | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveUselessVarTagRector | ||
* RenameClassRector | ||
|
||
|
||
2) src/RenameDocblock.php:0 | ||
2) src/UselessVarTag.php:1 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
<?php | ||
|
||
/** | ||
- * @param DateTime $someOldClass | ||
+ * @param \DateTimeInterface $someOldClass | ||
*/ | ||
function someFunction($someOldClass) | ||
final class UselessVarTag | ||
{ | ||
- /** | ||
- * @var string | ||
- */ | ||
public string $name = 'name'; | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RenameClassRector | ||
* RemoveUselessVarTagRector | ||
|
||
|
||
[OK] 2 files would have changed (dry-run) by Rector |
32 changes: 16 additions & 16 deletions
32
e2e/applied-rule-removed-node-with-cache/expected-output.diff
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
2 files with changes | ||
==================== | ||
|
||
1) src/DeadConstructor.php:1 | ||
1) src/AlwaysTrue.php:3 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
|
||
final class DeadConstructor | ||
{ | ||
- public function __construct() | ||
- { | ||
- } | ||
public function run() | ||
{ | ||
- if (1 === 1) { | ||
- } | ||
- | ||
return 'no'; | ||
} | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveEmptyClassMethodRector | ||
* RemoveAlwaysTrueIfConditionRector | ||
|
||
|
||
2) src/AlwaysTrue.php:3 | ||
2) src/DeadConstructor.php:1 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
|
||
final class DeadConstructor | ||
{ | ||
public function run() | ||
{ | ||
- if (1 === 1) { | ||
- } | ||
- | ||
return 'no'; | ||
} | ||
- public function __construct() | ||
- { | ||
- } | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveAlwaysTrueIfConditionRector | ||
* RemoveEmptyClassMethodRector | ||
|
||
|
||
[OK] 2 files would have changed (dry-run) by Rector |
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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
2 files with changes | ||
==================== | ||
|
||
1) src/DeadConstructor.php:1 | ||
1) src/AlwaysTrue.php:3 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
|
||
final class DeadConstructor | ||
{ | ||
- public function __construct() | ||
- { | ||
- } | ||
public function run() | ||
{ | ||
- if (1 === 1) { | ||
- } | ||
- | ||
return 'no'; | ||
} | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveEmptyClassMethodRector | ||
* RemoveAlwaysTrueIfConditionRector | ||
|
||
|
||
2) src/AlwaysTrue.php:3 | ||
2) src/DeadConstructor.php:1 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
|
||
final class DeadConstructor | ||
{ | ||
public function run() | ||
{ | ||
- if (1 === 1) { | ||
- } | ||
- | ||
return 'no'; | ||
} | ||
- public function __construct() | ||
- { | ||
- } | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveAlwaysTrueIfConditionRector | ||
* RemoveEmptyClassMethodRector | ||
|
||
|
||
[OK] 2 files would have changed (dry-run) by Rector |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,40 @@ | ||
2 files with changes | ||
==================== | ||
|
||
1) packages/target/src/UselessVarTag.php:1 | ||
1) packages/target/src/RenameDocblock.php:0 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
<?php | ||
|
||
final class UselessVarTag | ||
/** | ||
- * @param DateTime $someOldClass | ||
+ * @param \DateTimeInterface $someOldClass | ||
*/ | ||
function someFunction($someOldClass) | ||
{ | ||
- /** | ||
- * @var string | ||
- */ | ||
public string $name = 'name'; | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RemoveUselessVarTagRector | ||
* RenameClassRector | ||
|
||
|
||
2) packages/target/src/RenameDocblock.php:0 | ||
2) packages/target/src/UselessVarTag.php:1 | ||
|
||
---------- begin diff ---------- | ||
@@ @@ | ||
<?php | ||
|
||
/** | ||
- * @param DateTime $someOldClass | ||
+ * @param \DateTimeInterface $someOldClass | ||
*/ | ||
function someFunction($someOldClass) | ||
final class UselessVarTag | ||
{ | ||
- /** | ||
- * @var string | ||
- */ | ||
public string $name = 'name'; | ||
} | ||
----------- end diff ----------- | ||
|
||
Applied rules: | ||
* RenameClassRector | ||
* RemoveUselessVarTagRector | ||
|
||
|
||
[OK] 2 files would have changed (dry-run) by Rector | ||
[OK] 2 files would have changed (dry-run) by Rector |
Oops, something went wrong.