Problem/Motivation

The array shape returned by LogMessageParserInterface::parseMessagePlaceholders() is undocumented. This makes phpstan unhappy.

Steps to reproduce

Run phpstan on code that calls LogMessageParserInterface::parseMessagePlaceholders()

Proposed resolution

Document it, using the potential types returned by LogMessageParser: array<string, scalar|\Stringable|null>

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3624512

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

mfb created an issue. See original summary.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

This appears to be correct from looking at LogMessageParser, could argue there are probably dozens of instances that could be expanded but think for logger makes sense.

mfb’s picture

Issue summary: View changes