]> granicus.if.org Git - php/commit
Deprecate required param after optional
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 9 Jan 2020 11:21:02 +0000 (12:21 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Tue, 18 Feb 2020 13:35:58 +0000 (14:35 +0100)
commit3b08f53c97b2aa1bdd132d0f715e9db20fefad5d
treec8988278de53ba78fa472a83812d64745ce6ec69
parent9d79e510d593f5ea098e4633278d0ecd07e1b351
Deprecate required param after optional

As an exception, we allow "Type $foo = null" to occur before a
required parameter, because this pattern was used as a replacement
for nullable types in PHP versions older than 7.1.

Closes GH-5067.
UPGRADING
Zend/tests/call_user_func_005.phpt
Zend/tests/required_param_after_optional.phpt [new file with mode: 0644]
Zend/tests/traits/bug60717.phpt
Zend/zend_compile.c
ext/reflection/tests/ReflectionClass_isArray.phpt
ext/reflection/tests/ReflectionType_001.phpt
ext/reflection/tests/bug62715.phpt