-
-
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: Fix priority between
modernize_types_casting
and `no_unneeded_…
…control_parentheses` (#6687)
- Loading branch information
1 parent
046ff90
commit 9c7070b
Showing
4 changed files
with
27 additions
and
1 deletion.
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
13 changes: 13 additions & 0 deletions
13
...ixtures/Integration/priority/modernize_types_casting,no_unneeded_control_parentheses.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,13 @@ | ||
--TEST-- | ||
Integration of fixers: modernize_types_casting,no_unneeded_control_parentheses. | ||
--RULESET-- | ||
{"modernize_types_casting": true, "no_unneeded_control_parentheses": {"statements": ["others"]}} | ||
--EXPECT-- | ||
<?php | ||
|
||
$foo = (int) foo(); | ||
|
||
--INPUT-- | ||
<?php | ||
|
||
$foo = intval(foo()); |