php-src/Zend/tests/bug69767.phpt
Nikita Popov 5dcbc65a53 Canonicalize typed prop/param default value errors
Use shared logic to determine what values are valid, and a single
error message format.
2019-09-23 16:20:26 +02:00

9 lines
231 B
PHP

--TEST--
Bug #69767 (Default parameter value with wrong type segfaults)
--FILE--
<?php
function foo(String $bar = 0) {}
?>
--EXPECTF--
Fatal error: Cannot use int as default value for parameter $bar of type string in %s on line %d