Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New rector (10.3): Add rule for file_icon_class() and file_icon_map() #304

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

timohuisman
Copy link
Contributor

Description

file_icon_class() and file_icon_map() are deprecated and replaced with static methods on \Drupal\file\IconMimeTypes. I've used the existing FunctionToStaticConfiguration to replace the deprecated functions.

@bbrala mentioned that stubs/Drupal/Drupal.php should be upped to 10.99.x-dev because we always need to run the tests in this major.

To Test

  • run composer test

Drupal.org issue

https://www.drupal.org/project/rector/issues/3450324
https://www.drupal.org/node/3411269

@bbrala
Copy link
Collaborator

bbrala commented May 31, 2024

For now its ok to add those errors in phpstan to the baseline, we'll need to fix those, so perhaps a followup on the main issue on d.o. is good :)

Copy link
Collaborator

@bbrala bbrala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failure is completely unrelated. Thanks!

@bbrala bbrala changed the title feat: add rule for file_icon_class() and file_icon_map() New rector (10.3): Add rule for file_icon_class() and file_icon_map() Jun 7, 2024
@bbrala bbrala merged commit 98e0298 into palantirnet:main Jun 7, 2024
7 of 8 checks passed
@timohuisman timohuisman deleted the feature/file_icon_class branch June 8, 2024 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants