4 Star 3 Fork 5

Gitee 极速下载 / Mautic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/mautic/mautic
克隆/下载
phpstan.neon 3.65 KB
一键复制 编辑 原始数据 按行查看 历史
Tim Mallezie 提交于 2024-02-01 10:41 . Change phpstan cache location.
includes:
- phpstan-baseline.neon
parameters:
tmpDir: ./var/phpstan-cache
level: 6
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false
parallel:
# maximumNumberOfProcesses: 4
processTimeout: 1000.0
paths:
- app/bundles
- app/migrations
- plugins
excludePaths:
- *.html.php
- *.js.php
- *.less.php
- *.inc.php
# @todo handle once the other PRs are merged
- app/bundles/CoreBundle/Controller/AbstractStandardFormController.php
dynamicConstantNames:
- MAUTIC_ENV
- MAUTIC_TABLE_PREFIX
- MAUTIC_VERSION
bootstrapFiles:
- phpstan-bootstrap.php
ignoreErrors:
- '/Variable \$\w+ might not be defined\./'
# resolve later with translator interface generics
- '#Method (.*?)::getTranslatedEntity\(\) return type has no value type specified in iterable type array#'
# resolve later with generics
- '#Property Mautic\\CoreBundle\\Model\\IteratorExportDataModel::\$model has unknown class Mautic\\CoreBundle\\Model\\T as its type#'
- '#Property Mautic\\CoreBundle\\Model\\IteratorExportDataModel::\$model \(Mautic\\CoreBundle\\Model\\AbstractCommonModel<Mautic\\CoreBundle\\Model\\T>\) does not accept Mautic\\CoreBundle\\Model\\AbstractCommonModel<T of object>#'
# test on purpose
- '#Call to method PHPUnit\\Framework\\Assert::assertIsClosedResource\(\) with resource will always evaluate to true#'
# mocks
- '#Parameter (.*?) class (.*?) expects (.*?)PHPUnit\\Framework\\MockObject\\MockObject given#'
# handle later - ideally with custom interface
-
message: '#Call to an undefined method Mautic(.*?)Integration::getApiUrl\(\)#'
path: plugins/*/Api/*
- '#Parameter \$integration of method MauticPlugin\\MauticEmailMarketingBundle\\Api\\EmailMarketingApi::__construct\(\) has typehint with deprecated class Mautic\\PluginBundle\\Integration\\AbstractIntegration#'
# collection vs array
-
message: '#PHPDoc tag @return with type array|Doctrine\Common\Collections\ArrayCollection is not subtype of native type array#'
path: app/bundles/CoreBundle/Entity/TranslationEntityTrait.php
# mocks
- '#is not subtype of native type PHPUnit\\Framework\\MockObject\\MockObject#'
- '#Call to an undefined method PHPUnit\\Framework\\MockObject\\MockObject#'
- '#expects (.*?) PHPUnit\\Framework\\MockObject\\MockObject given#'
# on purpose
- '#Call to method PHPUnit\\Framework\\Assert::assertInstanceOf\(\) with (.*?) and (.*?) will always evaluate to#'
# on purpose type check
-
message: '#Parameter \#1 \$credentials of method Mautic\\IntegrationsBundle\\Auth\\Provider\\(.*?)::getClient\(\) expect#'
paths:
- app/bundles/IntegrationsBundle/Tests/Unit/Auth/Provider/ApiKey/HttpFactoryTest.php
- app/bundles/IntegrationsBundle/Tests/Unit/Auth/Provider/Oauth2TwoLegged/HttpFactoryTest.php
-
message: '#Method Mautic\\CampaignBundle\\Executioner\\ContactFinder\\InactiveContactFinder::getDatesAdded\(\) should return Doctrine\\Common\\Collections\\ArrayCollection but returns array<string, DateTimeInterface>\|null#'
path: app/bundles/CampaignBundle/Executioner/ContactFinder/InactiveContactFinder.php
-
message: '#Call to an undefined method Mautic\\IntegrationsBundle\\Auth\\Provider\\AuthCredentialsInterface::#'
path: app/bundles/IntegrationsBundle/Auth/Provider/Oauth2ThreeLegged/HttpFactory.php
scanFiles:
# This is here because a few functions in the global namespace are defined in this file
- vendor/twig/twig/src/Extension/EscaperExtension.php
doctrine:
objectManagerLoader: tests/object-manager.php
allowNullablePropertyForRequiredField: true
symfony:
containerXmlPath: var/cache/test/AppKernelTestDebugContainer.xml
consoleApplicationLoader: app/console-application.php
PHP
1
https://gitee.com/mirrors/Mautic.git
git@gitee.com:mirrors/Mautic.git
mirrors
Mautic
Mautic
5.x

搜索帮助

53164aa7 5694891 3bd8fe86 5694891