migrate to php8.x TypeError: implode(): Argument #2 ($array) must

Created on 6 February 2023, almost 2 years ago
Updated 10 July 2024, 4 months ago

Problem/Motivation

migrating to php 8
TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in implode() (regel 80 van
sites/all/modules/location/location.inc).

Steps to reproduce

install on php 8

Proposed resolution

  if (count($links)) {
    return '<div class="location map-link">' . t($link_text) . implode($links, ", ") . '</div>';
  }

to

  if (count($links)) {
    return '<div class="location map-link">' . t($link_text) . implode(", ", $links) . '</div>';
  }

Remaining tasks

make a nice .patch of it

πŸ› Bug report
Status

Closed: duplicate

Version

3.7

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium ikeigenwijs

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

Comments & Activities

Production build 0.71.5 2024