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#5012 StrictParamFixer - must run before NativeFuncti…
…onInvocationFixer (kubawerlos) This PR was merged into the 2.15 branch. Discussion ---------- StrictParamFixer - must run before NativeFunctionInvocationFixer Commits ------- 5bec12d StrictParamFixer - must run before NativeFunctionInvocationFixer
- Loading branch information
Showing
4 changed files
with
40 additions
and
0 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
19 changes: 19 additions & 0 deletions
19
tests/Fixtures/Integration/priority/strict_param,native_function_invocation.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,19 @@ | ||
--TEST-- | ||
Integration of fixers: strict_param,native_function_invocation. | ||
--RULESET-- | ||
{"strict_param": true, "native_function_invocation": true} | ||
--EXPECT-- | ||
<?php | ||
|
||
function isUtf8($content) | ||
{ | ||
return \mb_detect_encoding($content, \mb_detect_order(), true); | ||
} | ||
|
||
--INPUT-- | ||
<?php | ||
|
||
function isUtf8($content) | ||
{ | ||
return \mb_detect_encoding($content); | ||
} |