Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
file.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 Jan 2023 at 07:32 UTC
Updated:
9 Sep 2023 at 02:07 UTC
Jump to comment: Most recent
Comments
Comment #2
spokjeComment #4
spokjeComment #5
smustgrave commentedChange looks good and doesn't cause any issues so seems like a valid cleanup/update.
Comment #6
alexpottAdded review to MR - we need to use dependency injection here.
Comment #8
_pratik_Comment #9
smustgrave commentedNow that the service has a new parameter it will need a change record.
Also new parameter should default to NULL and throw a trigger_error
Comment #10
paulocsdon't we need to deprecate it first as we are changing the service constructor params?
@deprecated in drupal:10.1.0 and is removed from drupal:11.0.0.Comment #11
smustgrave commentedSo this is adding a parameter so would need something like
With the URL being to the change record created here.
Then the test is maybe a Kernel test that shows you get that trigger_error when passing nothing in that last parameter spot.
Comment #13
paulocsOh yes. I have read 'thrown error' instead of 'trigger_error' :)
I have created the deprecation notice. I have also created a new branch and MR as I can not change the target branch of MR !3316.
Comment #15
smustgrave commentedLooks good!
Comment #17
catchMade this change on commit, otherwise looks great.
Committed 283d9be and pushed to 10.1.x. Thanks!
Comment #20
quietone commentedPublished the CR