Fixed
Project:
Drupal core
Version:
11.5.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2026 at 16:40 UTC
Updated:
26 Oct 2026 at 09:28 UTC
Jump to comment: Most recent
The array shape returned by LogMessageParserInterface::parseMessagePlaceholders() is undocumented. This makes phpstan unhappy.
Run phpstan on code that calls LogMessageParserInterface::parseMessagePlaceholders()
Document it, using the potential types returned by LogMessageParser: array<string, scalar|\Stringable|null>
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
Comment #3
smustgrave commentedThis 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.
Comment #4
mfbComment #9
catchCommitted/pushed to main and cherry-picked to 12.0.x, 11.x, and 11.5.x, thanks!