Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 11, 2020

PR #1165 introduced a new PHP 8.0 related sniff. This sniff has not been in a released version of PHPCompatibility yet.

Variadic parameters are optional by nature. They also MUST be declared last in the parameter list and this requirement has been in place since their introduction.

In other words: variadic parameters should be ignored completely for the purposes of this sniff.

Includes unit tests.

…dic params

_PR 1165 introduced a new PHP 8.0 related sniff. This sniff has not been in a released version of PHPCompatibility yet._

Variadic parameters are optional by nature. They also MUST be declared last in the parameter list and this requirement has been in place since their introduction.

In other words: variadic parameters should be ignored completely for the purposes of this sniff.

Includes unit tests.
@jrfnl jrfnl added Type: bug PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 11, 2020
@jrfnl jrfnl added this to the 10.0.0 milestone Aug 11, 2020
@jrfnl jrfnl requested a review from wimg August 11, 2020 00:03
@wimg wimg merged commit e1abebf into develop Aug 16, 2020
@wimg wimg deleted the feature/removedoptionalbeforerequiredparams-bugfix branch August 16, 2020 22:31
@jrfnl jrfnl removed PR: quick merge PR only contains relatively simple changes PR: ready for review labels Aug 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants