Closed (fixed)
Project:
Drupal core
Version:
8.8.x-dev
Component:
render system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Jan 2020 at 13:28 UTC
Updated:
9 Mar 2020 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
cilefen commentedComment #3
eric_a commentedComment #4
eric_a commentedAs for the Novice tag added by @cilefen. I'll be happy to review this rather than fix it myself. Anyone?
Comment #5
eric_a commentedComment #6
mikeegouldingUnless I read the issue too fast, I think this is it?
Comment #7
mikeegouldingComment #8
eric_a commented@mikeegoulding, thanks, your patch is precisely what I had in mind that is needed here.
Comment #9
eric_a commentedDrupal developers delivering PHPStan approved code (level 3 or higher) on the job really profit from this bug fix.
Hooray for no more stupid errors like for example "Cannot assign offset 'blah' to string." Drupal should not be lying to us and static analysis tooling that non-string data is a string. :-)
Easy fix, lots of developer happiness. Living without return type hinting in Drupal becomes a real drag when the doc blocks are incorrect.
Comment #11
ravi.shankar commentedUnrelated test failures, so making it RTBC as per comment #6.
Comment #12
alexpottCommitted and pushed 386e98b8c7 to 9.0.x and 59987a5fd1 to 8.9.x and 14ea9e5787 to 8.8.x. Thanks!
Yep we have no idea what type the value is going to be.
Backported to 8.8.x as a docs fix.