Scan is not detecting use of ProphecyTrait

Created on 29 May 2023, over 1 year ago
Updated 20 September 2023, about 1 year ago

Problem/Motivation

When scanning modules, unit tests using ProphecyTrait will be marked as deprecated.

Call to deprecated method prophesize() of class ....

Steps to reproduce

Run the scan on selected modules on upgrade status page. Modules should have unit tests using ProphecyTrait.

Proposed resolution

This is related to https://www.drupal.org/project/drupal/issues/3318239 β†’ and https://www.drupal.org/project/drupal/issues/3263109 ✨ Use PHPStan for deprecation checking Active
Can be solved by adding

use function Prophecy\PhpUnit\ProphecyTrait\prophesize;

in the problematic tests.

πŸ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland piotr pakulski Poland πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.71.5 2024