Problem/Motivation

assertOptionSelected was deprecated and removed for Drupal 10. Address module provided a replacement. Tools like PHPStan didn't understand that it was a meaningful replacement with the method override (errors on D9, not in D10 when it was finally removed.)

PHPStan 1.10.3 added support for a @not-deprecated flag to support this.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork address-3346844

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

mglaman created an issue. See original summary.

mglaman’s picture

Status: Active » Needs review

Needs a manual scan

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

  • bojanz committed 093d615d on 8.x-1.x authored by mglaman
    Issue #3346844: Set @not-deprecated on assertOptionSelected
    

  • bojanz committed 9680e4ef on 2.0.x authored by mglaman
    Issue #3346844: Set @not-deprecated on assertOptionSelected
    
bojanz’s picture

Status: Needs review » Fixed

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.