Closed (fixed)
Project:
Shortcode
Version:
2.0.3
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2025 at 10:18 UTC
Updated:
1 Sep 2026 at 16:38 UTC
Jump to comment: Most recent
Running PHPCS shows the warnings/errors in attached file, which should be fixed
| Comment | File | Size | Author |
|---|---|---|---|
| shortcode.txt | 4.82 KB | ggh |
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
ggh commentedMR Raised
Comment #4
paraderojether commentedHi
I reviewed MR!8, applied against Shortcode 2.0.3, and confirmed fixes the issues reported by phpcs.
It all passed PHPCS using Gitlab CI.
Moving this to RTBC.
Thank you.
Comment #5
andres alvarez commentedIt would be a good opportunity to include the fixes suggested by cspell and PHPStan as well, to ensure a more complete code quality improvement and increase the visibility of this update.
Comment #6
andres alvarez commentedComment #7
andres alvarez commentedI think we should already be doing MR with the branch.
Comment #9
gokul.jayan commentedAdded missing ContainerFactoryPluginInterface to ShortcodeCorrector to fix the error.
ArgumentCountError: Too few arguments to function Drupal\shortcode\Plugin\Filter\ShortcodeCorrector::__construct(), 3 passed in /var/www/html/docroot/core/lib/Drupal/Core/Plugin/Factory/ContainerFactory.php on line 25 and exactly 4 expected in Drupal\shortcode\Plugin\Filter\ShortcodeCorrector->__construct() (line 42 of modules/contrib/shortcode/src/Plugin/Filter/ShortcodeCorrector.php).Comment #10
paraderojether commentedHi
I reviewed CSpell and PHPStan, and they also passed on GitLab CI.
Thank you.
Comment #11
swirtIt would be good to get this in, because when using PHP 8.4 I am getting the following errors that this MR would resolve
Comment #14
denes.szabo commentedThanks for the hard work on this, everyone! Assigning credit and closing.
Comment #16
denes.szabo commented