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
Codesniffer tests have a lot of definitions that match common keywords and it messes up code completition (in PHPStorm):
names of test functions like func, true, false and null show up along with coresponding PHP keywords/constants/etc., sometimes even before them
in code in global scope variable types get combined (e.g. inside conditions) for variables with the same name (e.g. $container) even when proper phpdoc is defined in the file. In case of the DI container, we have defined method get() with generic return type which does not work (it is random, can't reliably replicate) because of the combined type and the PSR container (used in tests) having method with the same name.
When working with tens of packages, including third-party, working around the problem gets quite annoying. I am currently using drupal/core-vendor-hardening package to remove the test directories, with following config:
Is your feature request related to a problem?
Codesniffer tests have a lot of definitions that match common keywords and it messes up code completition (in PHPStorm):
func
,true
,false
andnull
show up along with coresponding PHP keywords/constants/etc., sometimes even before them$container
) even when proper phpdoc is defined in the file. In case of the DI container, we have defined methodget()
with generic return type which does not work (it is random, can't reliably replicate) because of the combined type and the PSR container (used in tests) having method with the same name.When working with tens of packages, including third-party, working around the problem gets quite annoying. I am currently using
drupal/core-vendor-hardening
package to remove the test directories, with following config:Describe the solution you'd like
Additional context
The text was updated successfully, but these errors were encountered: