You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #266 the tool now reports errors on lines that are conflicting with how Drupal is normally made.
For example,
function my_module_page_attachments(array &$attachments): void {
results in
11 Function my_module_page_attachments() has parameter $attachments with no
value type specified in iterable type array.
💡 See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type
and there is no way to fix the issue without conflicting with drupal coding standard or counter-intuitively repeat the full documentation of hook.
To overcome issues of these type, it should be possible include custom neon file. Ideally of course this type of errors wouldn't be reported in the first place
The text was updated successfully, but these errors were encountered:
Dropa
pushed a commit
to Dropa/drupal-check-1
that referenced
this issue
Aug 12, 2022
With #266 the tool now reports errors on lines that are conflicting with how Drupal is normally made.
For example,
results in
and there is no way to fix the issue without conflicting with drupal coding standard or counter-intuitively repeat the full documentation of hook.
To overcome issues of these type, it should be possible include custom neon file. Ideally of course this type of errors wouldn't be reported in the first place
The text was updated successfully, but these errors were encountered: