source: src/router/php7/Zend/tests/nullable_types/nullable_type_parameters_do_not_have_default_value.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 369 bytes
Line 
1--TEST--
2Explicit nullable types do not imply a default value
3
4--FILE--
5<?php
6
7function f(?callable $p) {}
8
9f();
10
11--EXPECTF--
12Fatal error: Uncaught ArgumentCountError: Too few arguments to function f(), 0 passed in %snullable_type_parameters_do_not_have_default_value.php on line %d and exactly 1 expected in %s:%d
13Stack trace:
14#%d %s
15#%d %s
16  thrown in %s on line %d
17
Note: See TracBrowser for help on using the repository browser.