Problem/Motivation
We have declaration issue:
Fatal error: Declaration of Drupal\ai_ckeditor\Plugin\AICKEditor\FleschScore::buildCkEditorModalForm(array $form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\ai_ckeditor\AiCKEditorPluginBase::buildCkEditorModalForm(array $form, Drupal\Core\Form\FormStateInterface $form_state, array $settings = []) in /home/www/subsites/web/modules/contrib/ai_ckeditor_extras/src/Plugin/AiCKEditor/FleschScore.php on line 58
Steps to reproduce
The steps to reproduce the error are:
- Install via composer the module alpha1
- Enable module
- Configure the text format
- Save the text format
- Try to edit configuration of the text format, an error is arisen
Proposed resolution
A the function declaration, add the missing third parameter
Remaining tasks
The list of tasks:
- Create a patch
- Fork the code
- Add the fix at code
User interface changes
N/A
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | ai_ckeditor_extra_issue.patch | 1 KB | mok7tar |
Issue fork ai_ckeditor_extras-3511319
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 #2
mok7tar commentedComment #3
mok7tar commentedComment #4
mok7tar commentedComment #5
abelcain commentedComment #7
abelcain commentedPlease Carlos, merge ready, review and let's close this issue and move forward. Many thanks in advance.
Comment #8
enriquelacoma commentedComment #9
enriquelacoma commentedComment #11
enriquelacoma commentedComment #13
enriquelacoma commented