- Issue created by @spokje
- @spokje opened merge request.
- Status changed to Needs review
about 2 years ago 7:53am 28 January 2023 - Status changed to RTBC
almost 2 years ago 6:08pm 18 February 2023 - 🇺🇸United States smustgrave
Change looks good and doesn't cause any issues so seems like a valid cleanup/update.
- Status changed to Needs work
almost 2 years ago 8:44am 8 March 2023 - 🇬🇧United Kingdom alexpott 🇪🇺🌍
Added review to MR - we need to use dependency injection here.
- First commit to issue fork.
- Status changed to Needs review
almost 2 years ago 12:04pm 8 March 2023 - Status changed to Needs work
almost 2 years ago 2:00pm 8 March 2023 - 🇺🇸United States smustgrave
Now 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
- 🇺🇸United States smustgrave
So this is adding a parameter so would need something like
@trigger_error('Calling ' . __CLASS__ . '::__construct() with the $migration argument is deprecated in drupal:10.1.0 and is removed in drupal:11.0.0. See https://www.drupal.org/node/3323212', E_USER_DEPRECATED);
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.
- @paulocs opened merge request.
- Status changed to Needs review
almost 2 years ago 1:18am 9 March 2023 - 🇧🇷Brazil paulocs Belo Horizonte
Oh 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.
- Status changed to RTBC
almost 2 years ago 7:01pm 15 March 2023 - Status changed to Fixed
almost 2 years ago 10:12am 16 March 2023 - 🇬🇧United Kingdom catch
Made this change on commit, otherwise looks great.
diff --git a/core/modules/file/src/Upload/FileUploadHandler.php b/core/modules/file/src/Upload/FileUploadHandler.php index a79e757c67..ac997bcefa 100644 --- a/core/modules/file/src/Upload/FileUploadHandler.php +++ b/core/modules/file/src/Upload/FileUploadHandler.php @@ -120,7 +120,7 @@ public function __construct(FileSystemInterface $fileSystem, EntityTypeManagerIn $this->currentUser = $currentUser; $this->requestStack = $requestStack; if ($fileRepository === NULL) { - @trigger_error('Calling ' . __METHOD__ . ' without the $fileRepository argument is deprecated in drupal:10.1.5 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3346839', E_USER_DEPRECATED); + @trigger_error('Calling ' . __METHOD__ . ' without the $fileRepository argument is deprecated in drupal:10.1.0 and will be required in drupal:11.0.0. See https://www.drupal.org/node/3346839', E_USER_DEPRECATED); $fileRepository = \Drupal::service('file.repository'); } $this->fileRepository = $fileRepository;
Committed 283d9be and pushed to 10.1.x. Thanks!
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
over 1 year ago 2:07am 9 September 2023