Problem/Motivation

At Drupal core 11.3 PHPStan reports the following:

------ ----------------------------------------------------------------- 
  Line   scheduler.module                                                 
 ------ ----------------------------------------------------------------- 
  1383   Call to method getSystemData() of deprecated class               
         Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase:       
         in drupal:11.3.0 and is removed from drupal:12.0.0. There is no  
         replacement.                                                     
         🪪  method.deprecatedClass                                       
 ------ ----------------------------------------------------------------- 
 [ERROR] Found 1 error 

See https://git.drupalcode.org/project/scheduler/-/jobs/6946030#L58

Issue fork scheduler-3553242

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

jonathan1055 created an issue. See original summary.

jonathan1055’s picture

Adding the message to phpstan-baseline.neon fixes PHPStan next minor, but now at 'current' (which is running 11.2) we get:

----------------------------------------------------------------------- 
Line   scheduler.module                                                       
----------------------------------------------------------------------- 
Ignored error pattern #^Call to method getSystemData\(\) of deprecated class                                                       
Drupal\\migrate_drupal\\Plugin\\migrate\\source\\DrupalSqlBase#        
(method.deprecatedClass) in path                                       
/builds/project/scheduler/web/modules/custom/scheduler/scheduler.module
was not matched in reported errors.                                 
----------------------------------------------------------------------- 
 [ERROR] Found 1 error    

because the deprecation is only from 11.3+

jonathan1055’s picture

This is fixed by adding reportUnmatched: false to override the default just for this specific message.
https://git.drupalcode.org/project/scheduler/-/merge_requests/259/diffs?...

jonathan1055’s picture

Status: Active » Fixed

Fixed

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

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

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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