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 [warning] apcu_clear_cache() expects exactly 0 parameters, 1 given #2451

Merged
merged 1 commit into from Nov 22, 2016
Merged

fix [warning] apcu_clear_cache() expects exactly 0 parameters, 1 given #2451

merged 1 commit into from Nov 22, 2016

Conversation

ms-slasher13
Copy link
Contributor

After #2450 with PHP 7
The following error is caused by execution of drush cr
[warning] apcu_clear_cache() expects exactly 0 parameters, 1 given cache.drush.inc:280

Copy link
Contributor

@damiankloip damiankloip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh. Yes. array_walk will pass the key as the second value to the callback...

Using map instead seems kind of semantically weird, and it might just be better to for each this? This will totally work though. Moshe can decide!

@weitzman
Copy link
Member

weitzman commented Nov 18, 2016 via email

@damiankloip
Copy link
Contributor

@weitzman Yeah, it looks like core has the same problem too...

@damiankloip damiankloip merged commit 8e35dba into drush-ops:master Nov 22, 2016
@damiankloip
Copy link
Contributor

@weitzman cherry-picked into 8.x too.

@ms-slasher13
Copy link
Contributor Author

ok, I will fix in core, too!

@damiankloip
Copy link
Contributor

@ms-slasher13 I already created one https://www.drupal.org/node/2829578 feel free to jump in on there too!

@ms-slasher13
Copy link
Contributor Author

Reviewed & tested by the community

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants