Problem/Motivation
Some @return and @param type hints contain FQCN with upper case module namespace.
Steps to reproduce
Proposed resolution
Use correct case for module namespaces.
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3562676
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:
- 3562676-fix-type-hints
changes, plain diff MR !14092
Comments
Comment #3
znerol commentedComment #4
smustgrave commentedSeems pretty straight forward
Comment #5
znerol commentedI found one more instance with the following regex(es):
git grep -h -o ' \\Drupal\\[A-Z][\\A-Za-z0-9]*' | grep -v '\\Drupal\\Core' | grep -v '\\Drupal\\Component' | grep -v '\\Drupal\\Composer' | grep -v '\\Drupal\\[^\\]*Test[^\\]'Comment #6
xjmI also did a visual scan of the grep results without excluding those with
Testin the namespace (i.e., the above grep without the last bit after the last pipe). There were a couple out of scope raised eyebrows, but once I realized it was splitting on_things made more sense. I will be filing a couple followups for out-of-scope issues with other namespaces, but I didn't identify any incorrectly uppercased module names in test class namespaces on visual scan of the grep results.Comment #9
xjmCommitted to 11.x, and cherry-picked to 11.3.x as a patch-safe documentation fix. Thanks!