Closed (fixed)
Project:
Drupal core
Version:
11.x-dev
Component:
documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2023 at 09:43 UTC
Updated:
4 Dec 2023 at 15:10 UTC
Jump to comment: Most recent
Comments
Comment #2
mondrakeWouldn’t it be possible for the GitlabCI template to fallback to core’s phpstan.neon.dist if the
contrib module does not include a phpstan.neon file?
Comment #3
scott_euser commentedJust checked how that would work: phpstan then actually throws errors if an ignore error is in place yet no occurrences of the error are actually found.
Comment #4
scott_euser commentedOkay turns out if I copy the full phpstan.neon.dist from core and remove the ignoreErrors that do not apply to my contrib module, it works fine:
I will update the documentation page to clarify.
Comment #5
mondrakeDarn. You're right.
Comment #7
fathershawnI'll also add it to the docs, but you can add
reportUnmatchedIgnoredErrors: falseto your neon file and it won't squeak about ignored errors that didn't happen.Comment #8
mondrake#7 right, but that would still require a custom neon file. Here my point was NOT to have one, and still fallback to core's one.