Array to string conversion after trying to run unit tests

Created on 29 March 2017, about 8 years ago
Updated 20 May 2025, 18 days ago

Problem/Motivation

When Drupal requires you to enable some PHP extensions we get the next error:

Array to string conversion
/var/www/html/d8.loc/core/includes/install.core.inc:2181
/var/www/html/d8.loc/core/includes/install.core.inc:1028

An array is set for the requirements (core/modules/system/system.install in line 242), but string is expected.
E.g. we use 'description' element as string in install.core.inc (line 2181).

Proposed resolution

Render inline_template before set to requirements.

Remaining tasks

None

User interface changes

None

API changes

None

πŸ› Bug report
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component

system.module

Created by

πŸ‡ΊπŸ‡¦Ukraine alan-ps

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024