Problem/Motivation
Pipelines are ok cause phpstan pipeline is allowed to fail.
It would be great if its pipeline was also ok though.
Proposed resolution
According to the last CI pipelines, https://git.drupalcode.org/project/migrate_upgrade/-/jobs/528168 we only have to replace Drupal calls by dependency injections.
We also will have to add a phpstan.neon file, cause using dependencies injection will bring errors such as:
Unsafe usage of new static(). 💡 See: https://phpstan.org/blog/solving-phpstan-error-unsafe-usage-of-new-static
Since it is a best practice in Drupal, we will just ignore that kind of errors
Issue fork migrate_upgrade-3419025
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
Comment #5
jerech commentedThe phpstan errors have been fixed:
https://git.drupalcode.org/issue/migrate_upgrade-3419025/-/jobs/7758082
Comment #6
heddnTests are failing.
Comment #7
jerech commentedThe MR6 is ready for review. Thanks
Comment #8
heddnThanks for the contributions