Problem/Motivation

Running Drupal 11.3, Upgrade Status module reports,

web/modules/composer/address/address.views.inc 18 Call to deprecated function views_field_default_views_data(). Deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use Drupal::service('views.field_data_provider') ->defaultFieldImplementation($field_storage); instead.

Proposed resolution

Use the recommended service instead.

Remaining tasks

Make an MR.

Issue fork address-3590166

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

benstallings created an issue. See original summary.

benstallings’s picture

Assigned: benstallings » Unassigned
Status: Active » Needs review

The function call is already wrapped in a conditional; phpstan just needs to be told to ignore it.

dww made their first commit to this issue’s fork.

dww’s picture

Status: Needs review » Needs work

I rebased, since I've recently fixed a bunch of phpstan crap and the default pipelines are passing again.

Don't understand why, but the phpstan job is now failing because there's nothing for phpstan to ignore on that line:

https://git.drupalcode.org/project/address/-/jobs/13349370

Seems like Upgrade Status is doing something improper to complain about the BC function given to DeprecationHelper::backwardsCompatibleCall().

Leaning towards "works as designed" for this, but a little curious about what is going on here.

dww’s picture

Status: Needs work » Closed (works as designed)

Pushed a commit to enable the Upgrade Status CI job, and revert the "fix" in here. The resulting pipeline was:
https://git.drupalcode.org/project/address/-/pipelines/1031589
Upgrade Status isn't complaining about it:
https://project.pages.drupalcode.org/-/address/-/jobs/13372144/artifacts...
Apparently, this was fixed upstream in Upgrade Status a while ago.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.