Closed (fixed)
Project:
Config Distro
Version:
2.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Jun 2024 at 00:39 UTC
Updated:
10 Jul 2024 at 22:14 UTC
Jump to comment: Most recent
$ php vendor/bin/phpstan analyze $_WEB_ROOT/modules/custom/$CI_PROJECT_NAME $PHPSTAN_CONFIGURATION --no-progress || EXIT_CODE=$?
------ ----------------------------------------------------------------
Line src/Form/ConfigDistroImportForm.php
------ ----------------------------------------------------------------
18 Class Drupal\config_distro\Form\ConfigDistroImportForm extends
@internal class Drupal\config\Form\ConfigSync.
94 Call to an undefined static method
Drupal\config\Form\ConfigSync::finishBatch().
------ ----------------------------------------------------------------
[ERROR] Found 2 errors
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 #3
joegraduateCreated MR !15 that:
@phpstan-ignorecomment inDrupal\config_distro\Form\ConfigDistroImportFormto ignore error about extending an internal class since we are knowingly doing so.I also created a separate issue for exploring alternative implementations for
ConfigDistroImportFormthat don't require extending an internal class (#3456896: Explore alternatives to extending internal core ConfigSync form class).Comment #4
trackleft2This looks good to me RTBC
My only thought was that we could add a test to determine whether the proper events are fired, but that can be a follow-up or part of the "Create Rigorous Tests" ticket.
Comment #6
joegraduateMerged.
Comment #7
joegraduate