Advertisement
Guest User

Untitled

a guest
Apr 1st, 2015
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. <?php
  2.  
  3. function test(\DateTime $date) {
  4. return $date->format('Y-m-d');
  5. }
  6.  
  7. // Parameter '1' type is not compatible with declaration
  8. test(1);
  9.  
  10. // NO ERROR HERE
  11. test(2, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement