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#5033 VoidReturnFixer - must run after NoSuperfluousP…
…hpdocTagsFixer (kubawerlos) This PR was merged into the 2.15 branch. Discussion ---------- VoidReturnFixer - must run after NoSuperfluousPhpdocTagsFixer Commits ------- f27a841 VoidReturnFixer - must run after NoSuperfluousPhpdocTagsFixer
- Loading branch information
Showing
6 changed files
with
24 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ public function getDefinition() | |
*/ | ||
public function getPriority() | ||
{ | ||
return 5; | ||
return 3; | ||
} | ||
|
||
/** | ||
|
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 |
---|---|---|
|
@@ -69,7 +69,7 @@ function foo() {} | |
*/ | ||
public function getPriority() | ||
{ | ||
return 10; | ||
return 4; | ||
} | ||
|
||
/** | ||
|
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
18 changes: 18 additions & 0 deletions
18
tests/Fixtures/Integration/priority/no_superfluous_phpdoc_tags,void_return.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,18 @@ | ||
--TEST-- | ||
Integration of fixers: no_superfluous_phpdoc_tags,void_return. | ||
--RULESET-- | ||
{"no_superfluous_phpdoc_tags": true, "void_return": true} | ||
--REQUIREMENTS-- | ||
{"php": 70100} | ||
--EXPECT-- | ||
<?php | ||
/** | ||
*/ | ||
function test(): void {} | ||
|
||
--INPUT-- | ||
<?php | ||
/** | ||
* @return mixed | ||
*/ | ||
function test() {} |