diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-23 16:12:18 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-09-23 16:20:26 +0200 |
commit | 5dcbc65a53b7f7c6e517b19260c637017528b3f9 (patch) | |
tree | efe5dce103f86dfe9ba616466bc2d2403fecdfa6 /Zend/tests/bug69767.phpt | |
parent | b7745d6eeb39dffc616ef48b92b6b2cfc7e571a5 (diff) | |
download | php-git-5dcbc65a53b7f7c6e517b19260c637017528b3f9.tar.gz |
Canonicalize typed prop/param default value errors
Use shared logic to determine what values are valid, and a single
error message format.
Diffstat (limited to 'Zend/tests/bug69767.phpt')
-rw-r--r-- | Zend/tests/bug69767.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/tests/bug69767.phpt b/Zend/tests/bug69767.phpt index 9458546dea..095bfd89d5 100644 --- a/Zend/tests/bug69767.phpt +++ b/Zend/tests/bug69767.phpt @@ -5,4 +5,4 @@ Bug #69767 (Default parameter value with wrong type segfaults) function foo(String $bar = 0) {} ?> --EXPECTF-- -Fatal error: Default value for parameters with a string type can only be string or NULL in %sbug69767.php on line %d +Fatal error: Cannot use int as default value for parameter $bar of type string in %s on line %d |