]> granicus.if.org Git - php/commit
Canonicalize typed prop/param default value errors
authorNikita Popov <nikita.ppv@gmail.com>
Mon, 23 Sep 2019 14:12:18 +0000 (16:12 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Mon, 23 Sep 2019 14:20:26 +0000 (16:20 +0200)
commit5dcbc65a53b7f7c6e517b19260c637017528b3f9
treeefe5dce103f86dfe9ba616466bc2d2403fecdfa6
parentb7745d6eeb39dffc616ef48b92b6b2cfc7e571a5
Canonicalize typed prop/param default value errors

Use shared logic to determine what values are valid, and a single
error message format.
Zend/tests/bug69767.phpt
Zend/tests/errmsg_013.phpt
Zend/tests/object_types/invalid_default_value.phpt
Zend/tests/type_declarations/iterable_002.phpt
Zend/tests/type_declarations/scalar_float_with_invalid_default.phpt
Zend/tests/type_declarations/typed_properties_013.phpt
Zend/tests/type_declarations/typed_properties_014.phpt
Zend/zend_compile.c
tests/lang/type_hints_003.phpt