if ($phase !== 'runtime') {
    return;
  }

should be

  if ($phase !== 'runtime') {
    return [];
  }

Otherwise it leads to install errors:
array_merge(): Argument #2 is not an array install.inc:967
Error: Unsupported operand types in /web/core/includes/install.core.inc on line 1031
#0 /web/core/includes/install.core.inc(671): install_verify_requirements(Array)

CommentFileSizeAuthor
#2 csp-return-2941263-D8.patch241 bytesioana apetri

Comments

dudleyc created an issue. See original summary.

ioana apetri’s picture

Status: Active » Needs review
StatusFileSize
new241 bytes

A patch for this. please review.

  • gapple committed 1c6c9a8 on 8.x-1.x
    Fix #2941263: csp_requirements() must return an array during install...
gapple’s picture

Title: wrong return type in csp_requirements() » csp_requirements('install') should return an empty array
Version: 8.x-1.0-alpha5 » 8.x-1.x-dev
Status: Needs review » Fixed
dudleyc’s picture

Confirmed fixed, thanks!

Status: Fixed » Closed (fixed)

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