strict_param,native_function_invocation.test 372 B

12345678910111213141516171819
  1. --TEST--
  2. Integration of fixers: strict_param,native_function_invocation.
  3. --RULESET--
  4. {"strict_param": true, "native_function_invocation": {"include": ["@internal"]}}
  5. --EXPECT--
  6. <?php
  7. function isUtf8($content)
  8. {
  9. return \mb_detect_encoding($content, \mb_detect_order(), true);
  10. }
  11. --INPUT--
  12. <?php
  13. function isUtf8($content)
  14. {
  15. return \mb_detect_encoding($content);
  16. }