TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array()

Created on 12 December 2023, 7 months ago
Updated 20 February 2024, 4 months ago

Problem/Motivation

TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in in_array() (row 37 of fastly.webhook.inc).

Steps to reproduce

Try editing some node.

Proposed resolution

Check if the variable is null or empty.

Probably related: https://www.drupal.org/project/fastly/issues/2915670#comment-13079890 πŸ› sendWebhook() triggers warning in_array() expects parameter 2 to be array, null given Fixed

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ͺπŸ‡ͺEstonia tormi Tallinn

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024