- Issue created by @spokje
- Assigned to spokje
- Status changed to Active
over 1 year ago 4:52pm 25 August 2023 - Merge request !4661Issue #3383414: Add @group legacy to non-TestCase-extending code calling deprecated things โ (Closed) created by spokje
- last update
over 1 year ago 30,060 pass - Issue was unassigned.
- Status changed to Needs review
over 1 year ago 9:25am 28 August 2023 - Status changed to RTBC
over 1 year ago 2:16pm 29 August 2023 - ๐บ๐ธUnited States smustgrave
Looking at the changes and think this is good.
- Status changed to Needs review
over 1 year ago 2:32pm 29 August 2023 - ๐ฎ๐นItaly mondrake ๐ฎ๐น
Mmmm...
@group legacy
as an annotation should only be applied to test methods or to classes containing test methods IMHO. Here it seems it's misused. Possibly also a sign of a bug upstream, @mglaman? - ๐บ๐ธUnited States mglaman WI, USA
core/modules/system/tests/modules/deprecation_test/src/DeprecatedController.php
Does this class or its methods have the deprecated tag in them?
- ๐ฆ๐บAustralia kim.pepper ๐โโ๏ธ๐ฆ๐บSydney, Australia
Came across the same issue in ๐ Deprecate file_managed_file_save_upload(), file_save_upload() and _file_save_upload_from_form() and replace with a service Needs review where a test module was used to test a deprecated function. I added
@phpstan-ignore-next-line
to get around it. - Status changed to Needs work
over 1 year ago 5:20pm 8 September 2023 - ๐บ๐ธUnited States smustgrave
Per @mglaman in slack
Use @deprecated
If code is intended to call deprecated code, that should itself be tagged as deprecated
Moving to NW for that.
- ๐ณ๐ฑNetherlands spokje
Right, so adding "just"
@deprecated
doesn't play nice with our (rightfully) rather strict PHPCS rule on that.TBH: This looks like far too much effort. I would go with just a
@phpstan-ignore-next-line
(like #14 ๐ Add @group legacy to non-TestCase-extending code for testing calling deprecated things Needs work ) inDeprecatedController
,ExternalCommandRequirementTest
will be gone in 11.0.0 anyway.