1- includes :
2- - ../../vendor/phpstan/phpstan-deprecation-rules/rules.neon
3- - ../../vendor/mglaman/phpstan-drupal/extension.neon
4- - ../../vendor/jangregor/phpstan-prophecy/extension.neon
5- - ../../vendor/phpstan/phpstan-phpunit/extension.neon
6-
71parameters :
82 # PHPStan cannot find files in this test directory automatically.
93 scanDirectories :
@@ -21,6 +15,10 @@ parameters:
2115 # Not sure we can specify generic types properly with Drupal coding standards
2216 # yet, disable for now.
2317 checkGenericClassInNonGenericObjectType : false
18+ # Exclude the RouteLoad producer because the redirect module is not D10
19+ # compatible so we are not downloading it.
20+ excludePaths :
21+ - src/Plugin/GraphQL/DataProducer/Routing/RouteLoad.php
2422 ignoreErrors :
2523 # @todo Ignore phpstan-drupal extension's rules for now, activate later.
2624 - ' #\Drupal calls should be avoided in classes , use dependency injection instead #'
@@ -31,28 +29,7 @@ parameters:
3129 - " #^Access to an undefined property Drupal\\\\ #"
3230 # PHPUnit deprecation warnings in Drupal 9 that we don't care about.
3331 - "#^Call to deprecated method setMethods\\ (\\ ) of class PHPUnit\\\\Framework\\\\MockObject\\\\MockBuilder:#"
34- # Other deprecations in Drupal 9 that we can't change because we want to
35- # support Drupal 8.
36- - " #deprecated class Symfony\\\\Component\\\\EventDispatcher\\\\Event #"
37- - " #deprecated class Symfony\\\\Component\\\\HttpKernel\\\\Event\\\\GetResponseEvent #"
3832 - "#^Method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\ (\\ ) invoked with 2 parameters , 1 required\\.$ #"
39- - " #deprecated interface Symfony\\\\Component\\\\HttpFoundation\\\\File\\\\MimeType\\\\MimeTypeGuesserInterface #"
40- - " #^Parameter .+ of class Symfony\\\\Component\\\\HttpFoundation\\\\File\\\\UploadedFile constructor expects .+ given\\.$ #"
41- - "#^Parameter \\#1 \\$event of method Symfony\\\\Contracts\\\\EventDispatcher\\\\EventDispatcherInterface\\:\\:dispatch\\ (\\ ) expects object , string given\\.$ #"
42- - """
43- # ^Call to deprecated method toInt\\(\\) of class Drupal\\\\Component\\\\Utility\\\\Bytes\\:
44- in drupal\\:9\\.1\\.0 and is removed from drupal\\:10\\.0\\.0\\. Use \\\\Drupal\\\\Component\\\\Utility\\\\Bytes\\:\\:toNumber\\ (\\ ) instead$ #
45- """
46- - """
47- #^Call to deprecated function file_munge_filename\\(\\)#
48- """
49- - """
50- # ^Call to deprecated function drupal_get_path\\(\\)#
51- """
52- - """
53- #^Call to deprecated function file_create_url\\(\\)#
54- """
55- - "#^Call to an undefined method Drupal\\\\Tests\\\\graphql\\\\Kernel\\\\DataProducer\\\\EntityTest\\:\\:assertMatchesRegularExpression\\ (\\ )\\.$ #"
5633 # Drupal allows object property access to custom fields, so we cannot fix
5734 # that.
5835 - "#^Property Drupal\\\\.+ \\ (Drupal\\\\Core\\\\Field\\\\FieldItemListInterface\\ ) does not accept .+\\.$ #"
0 commit comments