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

fix parameter order in quickform #16708

Merged
merged 1 commit into from Nov 12, 2020
Merged

fix parameter order in quickform #16708

merged 1 commit into from Nov 12, 2020

Conversation

Findus23
Copy link
Member

Just saw the deprecation warning when testing PHP 8

PHP Deprecated: Required parameter $filter follows optional parameter $key in /var/www/matomo/libs/HTML/QuickForm2/Node.php on line 681

It is only called in those two lines:

foreach ($this->filters as $filter) {
if (is_array($value) && !empty($filter['recursive'])) {
array_walk_recursive($value,
array('HTML_QuickForm2_Node', 'applyFilter'), $filter);
} else {
self::applyFilter($value, null, $filter);
}

The second one is safe, I am not too sure about the first one.

Review

  • Functional review done
  • Usability review done (is anything maybe unclear or think about anything that would cause people to reach out to support)
  • Security review done see checklist
  • Code review done
  • Tests were added if useful/possible
  • Reviewed for breaking changes
  • Developer changelog updated if needed
  • Documentation added if needed
  • Existing documentation updated if needed

@tsteur tsteur merged commit 7386326 into 4.x-dev Nov 12, 2020
@tsteur tsteur deleted the quickform-paramter-order branch November 12, 2020 20:51
@mattab mattab added the not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. label Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants