strict_comparison,modernize_strpos.test 236 B

1234567891011
  1. --TEST--
  2. Integration of fixers: strict_comparison,modernize_strpos.
  3. --RULESET--
  4. {"strict_comparison": true, "modernize_strpos": true}
  5. --EXPECT--
  6. <?php
  7. $x = str_starts_with($foo, 'foo') ;
  8. --INPUT--
  9. <?php
  10. $x = strpos($foo, 'foo') == 0;