Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function test(\DateTime $date) {
- return $date->format('Y-m-d');
- }
- // Parameter '1' type is not compatible with declaration
- test(1);
- // NO ERROR HERE
- test(2, 3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement