Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add *a lot* more new function parameters to the NewFunctionParameter sniff #164

Merged

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Aug 13, 2016

Based on the information found in:
http://php.net/manual/en/doc.changelog.php
http://php.net/manual/en/migration52.parameters.php
http://php.net/manual/en/migration53.parameters.php

By no means claiming completeness, but it's big step in the right direction.

Functions are ordered alphabetically. As some functions have several parameters added in different PHP versions, this made the most sense.

Includes unit tests.

Also:

  • Correct parameter name for the dirname() function.
  • Add quotes around the parameter name in the error notice.

…` sniff.

Based on the information found in:
http://php.net/manual/en/doc.changelog.php
http://php.net/manual/en/migration52.parameters.php
http://php.net/manual/en/migration53.parameters.php

By no means claiming completeness, but it's another step in the right direction.

Functions are ordered alphabetically. As some functions have several parameters added in different PHP  versions, this made the most sense.

Includes unit tests.

Also:
* Correct parameter name for the `dirname()` function.
* Add quotes around the parameter name in the error notice.
@wimg wimg merged commit def3a5f into PHPCompatibility:master Aug 16, 2016
@jrfnl jrfnl deleted the feature/more-function-parameters branch August 17, 2016 02:58
@jrfnl jrfnl added this to the 7.0.3 milestone Apr 30, 2017
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.

None yet

2 participants