Problem/Motivation
PHPStan and CSpell are complaining:
% ddev phpstan .
10/10 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------------------------
Line layout_builder_component_attributes.install
------ ---------------------------------------------------------------------
57 Access to constant FIELD_NAME of internal class
Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage
from outside its root namespace Drupal.
🪪 classConstant.internalClass
97 Access to constant FIELD_NAME of internal class
Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage
from outside its root namespace Drupal.
🪪 classConstant.internalClass
99 Access to constant FIELD_NAME of internal class
Drupal\layout_builder\Plugin\SectionStorage\OverridesSectionStorage
from outside its root namespace Drupal.
🪪 classConstant.internalClass
------ ---------------------------------------------------------------------
[ERROR] Found 3 errors
Failed to run phpstan .: exit status 1
% ddev cspell
Writing json array to .cspell.json
README.md:137:9 - Unknown word (Burge) -- - Chris Burge - https://www.drupal
Suggestions: [Burg, Barge, budge, Budge, Bulge]
CSpell: Files checked: 21, Issues found: 1 in 1 file.
Failed to run cspell : exit status 1
Steps to reproduce
Proposed resolution
- Ignore internal class issue. It might be an internal class, but
OverridesSectionStorage::FIELD_NAME can never change.
- Add 'burge' to CSpell
_CSPELL_WORDS in .gitlab-ci.yml.
Remaining tasks
- Open MR
- Passing PHPStan and CSpell scans
User interface changes
None
API changes
None
Data model changes
None
Comments
Comment #3
chris burge commentedNext major version deprecation notice:
Replacement service isn't available across supported core versions - defer for now.
Previous major version:
These are simply ignored in D10 and will go away when D10 support is dropped.
Comment #5
chris burge commented