Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again

Created on 25 August 2023, about 1 year ago

Problem/Motivation

mglaman/phpstan-drupal Released version 1.2.0 (See https://github.com/mglaman/phpstan-drupal/releases/tag/1.2.0).

Adds phpstan/phpstan-deprecation-rules as a direct dependency and minimum version of 1.1.4. This allows ignoring deprecation warnings inside PHPUnit tests using @group legacy for the Symfony PHPUnit Bridge.

As shown in our daily QA run with updated dependencies here: https://www.drupal.org/pift-ci-job/2747559 it does catch a few usages of deprecated code.

Steps to reproduce

Look at our daily QA run with updated dependencies.

Proposed resolution

- Upgrade mglaman/phpstan-drupal to 1.2.0.
- Create a new baseline.
- Bump version of mglaman/phpstan-drupal in composer.* to latest, since the newly created baseline won't pass on any lower version.
- Create follow-up for fixing the new baseline suppressions: 📌 [META] Fix the PHPStan baseline suppressions added for mglaman/phpstan-drupal:1.2.0 Closed: outdated
- Create follow-up for adding phpstan-baseline generation to deprecation docs: 📌 [Follow-up] In deprecation policy, document adding the deprecation to the phpstan baseline Active

Note: The number of added suppressions to the baseline can be (drastically) reduced by first committing 🐛 Rearrange interfaces TranslatableRevisionableStorageInterface extends to fix deprecation warnings Fixed :

New baseline without 3383215:
[OK] Baseline generated with 1075 errors.

New baseline with 3383215:
[OK] Baseline generated with 1060 errors.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
PHPUnit 

Last updated about 3 hours ago

Created by

🇳🇱Netherlands spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024