sccp_exception3.phpt 361 B

123456789101112131415
  1. --TEST--
  2. Exception thrown during SCCP evaluation, strict types variation
  3. --FILE--
  4. <?php
  5. declare(strict_types=1);
  6. var_dump(str_contains("123", 1));
  7. ?>
  8. --EXPECTF--
  9. Fatal error: Uncaught TypeError: str_contains(): Argument #2 ($needle) must be of type string, int given in %s:%d
  10. Stack trace:
  11. #0 %s(%d): str_contains('123', 1)
  12. #1 {main}
  13. thrown in %s on line %d