Allow optional parameters before non-optional ones in PHP

Authored by mtijink on Sep 6 2017, 6:46 AM.

Description

Allow optional parameters before non-optional ones in PHP

Summary: PHP allows default values for parameters, even if later parameters do not have default values (it does not using those default values while calling functions though). This diff adds support for that, by dropping the default values of arguments before the last non-optional argument.

Reviewers: KDevelop, kfunk

Reviewed By: KDevelop, kfunk

Subscribers: zhigalin, kfunk, kdevelop-devel

Differential Revision: https://phabricator.kde.org/D7018

Details