upstream V3 development https://www.gnusocial.rocks/v3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

91 lines
3.0 KiB

  1. parameters:
  2. level: 6
  3. tmpDir: /var/www/social/var/cache/phpstan
  4. inferPrivatePropertyTypeFromConstructor: true
  5. bootstrapFiles:
  6. - config/bootstrap.php
  7. paths:
  8. - src
  9. - tests
  10. - components
  11. - plugins
  12. excludePaths:
  13. - plugins/ActivityPub
  14. - plugins/Poll
  15. - components/FreeNetwork
  16. - tests/CodeCeption/_support/
  17. earlyTerminatingMethodCalls:
  18. App\Core\Log:
  19. - unexpected_exception
  20. typeAliases:
  21. ControllerResultType: '(array{_template: string} | array{_redirect: string}) & array<string, mixed>'
  22. CacheKeysType: 'array<string, string>'
  23. SettingsTabsType: 'array<array{title: string, desc: string, id: string, controller: ControllerResultType}>'
  24. OrderByType: "'ASC' | 'DESC' | 'asc' | 'desc'"
  25. ModuleVersionType: 'array{name: string, version: string, author: string, rawdescription: string}'
  26. ignoreErrors:
  27. -
  28. message: '/Access to an undefined property App\\Util\\Bitmap::\$\w+/'
  29. paths:
  30. - *
  31. -
  32. message: '/^Property App\\PHPStan\\ClassFromTableNameDynamicStaticMethodReturnTypeExtension::\$provider is never read, only written\./'
  33. path: src/PHPStan/ClassFromTableNameDynamicStaticMethodReturnTypeExtension.php
  34. -
  35. message: '/Parameter \$I of method [a-zA-Z]+::[a-zA-Z_]+\(\) has invalid type AcceptanceTester\./'
  36. paths:
  37. - *
  38. -
  39. message: '/Call to method [a-zA-Z]+\(\) on an unknown class AcceptanceTester\./'
  40. paths:
  41. - *
  42. -
  43. message: '/::onCollectionQueryCreateExpression\(\) has parameter \$(actor|note)_expr with no type specified\./'
  44. paths:
  45. - *
  46. -
  47. message: '/::schemaDef\(\) return type has no value type specified in iterable type array\./'
  48. paths:
  49. - *
  50. -
  51. message: '/has no return type specified\./'
  52. paths:
  53. - *
  54. -
  55. message: '/with no value type specified in iterable type (array|iterable)\.|type has no value type specified in iterable type (array|iterable)\./'
  56. paths:
  57. - *
  58. -
  59. message: '/never returns array{_redirect: string} so it can be removed from the return type\./'
  60. paths:
  61. - *
  62. -
  63. message: '/but returns array<string, array<int, mixed>\|string>\./'
  64. paths:
  65. - plugins/AttachmentCollections/Controller/AttachmentCollections.php
  66. - plugins/Bundles/Controller/BundleCollection.php
  67. -
  68. message: '/has parameter \$.+ with no type specified./'
  69. paths:
  70. - tests/*
  71. services:
  72. -
  73. class: App\PHPStan\ClassFromTableNameDynamicStaticMethodReturnTypeExtension
  74. tags:
  75. - phpstan.broker.dynamicStaticMethodReturnTypeExtension
  76. -
  77. class: App\PHPStan\GNUsocialProvider