Closed rupertj closed 3 months ago
Actually, I think I got a little ahead of myself here. It looks like ByteSizeMarkup::create() only got introduced in 10.2, so we don't want to merge this until we're happy to drop support for 10.1.
Suggest we add // @phpstan-ignore-next-line.
for now until we can bump support to 10.2+
Good plan. I'm also wondering if we can make a failure on the deprecated code check into a warning instead of an error. I know how to do this on GitLab CI, but not GitHub actions.
I agree with @andybroomfield we should use // @phpstan-ignore-next-line
to ignore for now. I would be in favour of this for the full comment which will highlight in various IDE tools that we need to fix it in future;
// FIXME: Replace with ByteSizeMarkup, when Drupal 10.1 is end of life.
// @phpstan-ignore-next-line.
I've created a PR to ignore this using @millnut suggestion above #166
See here: https://github.com/localgovdrupal/localgov_paragraphs/actions/runs/7426621431/job/20210755941