forked from PHP-CS-Fixer/PHP-CS-Fixer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug PHP-CS-Fixer#4994 FinalInternalClassFixer - must run before Prote…
…ctedToPrivateFixer (kubawerlos) This PR was merged into the 2.15 branch. Discussion ---------- FinalInternalClassFixer - must run before ProtectedToPrivateFixer Commits ------- 2821dd2 FinalInternalClassFixer - must run before ProtectedToPrivateFixer
- Loading branch information
Showing
5 changed files
with
30 additions
and
2 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
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 |
---|---|---|
|
@@ -49,7 +49,7 @@ public function getDefinition() | |
*/ | ||
public function getPriority() | ||
{ | ||
return 1; | ||
return 68; | ||
} | ||
|
||
/** | ||
|
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
25 changes: 25 additions & 0 deletions
25
tests/Fixtures/Integration/priority/final_internal_class,protected_to_private.test
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,25 @@ | ||
--TEST-- | ||
Integration of fixers: final_internal_class,protected_to_private. | ||
--RULESET-- | ||
{"final_internal_class": true, "protected_to_private": true} | ||
--EXPECT-- | ||
<?php | ||
/** | ||
* @internal | ||
*/ | ||
final class Foo | ||
{ | ||
private $bar; | ||
private function baz() {} | ||
} | ||
|
||
--INPUT-- | ||
<?php | ||
/** | ||
* @internal | ||
*/ | ||
class Foo | ||
{ | ||
protected $bar; | ||
protected function baz() {} | ||
} |