-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #3835 Fix priority between PHPDoc return type fixers (julienfalqu…
…e, keradus) This PR was merged into the 2.12 branch. Discussion ---------- Fix priority between PHPDoc return type fixers Commits ------- 082ed03 Update composer.json 431f6c6 Fix priority between PHPDoc return type fixers
- Loading branch information
Showing
4 changed files
with
32 additions
and
3 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
28 changes: 28 additions & 0 deletions
28
tests/Fixtures/Integration/priority/phpdoc_to_return_type,no_superfluous_phpdoc_tags.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,28 @@ | ||
--TEST-- | ||
Integration of fixers: phpdoc_to_return_type,no_superfluous_phpdoc_tags. | ||
--RULESET-- | ||
{"phpdoc_to_return_type": true, "no_superfluous_phpdoc_tags": true} | ||
--REQUIREMENTS-- | ||
{"php": 70000} | ||
--EXPECT-- | ||
<?php | ||
|
||
class Test { | ||
/** | ||
*/ | ||
public function foo(): int { | ||
return 1; | ||
} | ||
} | ||
|
||
--INPUT-- | ||
<?php | ||
|
||
class Test { | ||
/** | ||
* @return int | ||
*/ | ||
public function foo() { | ||
return 1; | ||
} | ||
} |