A small issue turned up while doing some drush commands concerning configuration. PHP throws a lot warnings:

in_array() expects parameter 2 to be array, null given IgnoreFilter.php:85
Invalid argument supplied for foreach() IgnoreFilter.php:89

Since this is rather annoying I made a little patch to fix this. Hope this is of use to anyone else.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

MPaans created an issue. See original summary.

bircher’s picture

Thanks for the contribution.
This is one way of getting rid of the error, but I think it would be better to make sure the plugin is always initialized properly and that $this->configuration['ignored'] is always an array (empty if not set).

bircher’s picture

Status: Needs review » Needs work

The plugin constructor is the palce to do that.

narasimhan_gobear’s picture

We ran into the same problem. It happens whenever no modules are set to be ignored.

qzmenko’s picture

Status: Needs work » Needs review
FileSize
908 bytes

Same for me. Patch attached.

Dane Powell’s picture

Status: Needs review » Reviewed & tested by the community

I can confirm the original issue, and that #5 fixes it. The approach also seems good.

  • bircher committed 4a8107c on 8.x-2.x
    Issue #2917659 by MPaans, qzmenko: PHP throws warnings from IgnoreFilter...
bircher’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the contribution.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.