Guest User

Untitled

a guest
Mar 23rd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. <?php
  2. declare(strict_types=1);
  3. function test(int $x): int {
  4. return $x;
  5. }
  6. //Uncaught TypeError: Argument 1 passed to test() must be of the type integer, boolean given
  7. echo test(true);
Add Comment
Please, Sign In to add comment