Problem/Motivation

After upgrading to 1.6.0, when I clear caches or I install the site from configuration, I get this error:

Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /var/www/html/web/modules/contrib/xray_audit/src/Services/PluginRepository.php:310

Proposed resolution

There is a logical error in this condition that makes it don't return when `operations` key is empty. Fixing this condition solves the issue.

Issue fork xray_audit-3515444

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

omarlopesino created an issue. See original summary.

omarlopesino’s picture

Priority: Normal » Critical

omarlopesino’s picture

Issue summary: View changes
omarlopesino’s picture

Status: Active » Needs review

The MR fixes the problem. it just fixes the parenthesis so each empty call is separated. Please review, thanks!

omarlopesino’s picture

Status: Needs review » Fixed

This has already been released, thanks!

Status: Fixed » Closed (fixed)

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