forked from sulu/SuluCommunityBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
42 lines (41 loc) · 2.55 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
includes:
- vendor/jangregor/phpstan-prophecy/src/extension.neon
- vendor/phpstan/phpstan-symfony/extension.neon
- vendor/phpstan/phpstan-doctrine/extension.neon
- vendor/phpstan/phpstan-phpunit/extension.neon
- vendor/phpstan/phpstan-phpunit/rules.neon
- vendor/thecodingmachine/phpstan-strict-rules/phpstan-strict-rules.neon
parameters:
paths:
- .
level: max
excludes_analyse:
- %currentWorkingDirectory%/DependencyInjection/Configuration.php
- %currentWorkingDirectory%/vendor/*
- %currentWorkingDirectory%/Tests/Application/*
symfony:
container_xml_path: %currentWorkingDirectory%/Tests/Application/var/cache/admin/dev/adminAdminDevDebugProjectContainer.xml
ignoreErrors:
-
path: Manager/CommunityManager.php
message: '#Symfony\\Contracts\\EventDispatcher\\EventDispatcherInterface::dispatch()#'
-
path: Controller/SaveMediaTrait.php
message: '#Else branch is unreachable because ternary operator condition is always true.#'
-
path: Tests/Functional/Controller/RegistrationTest.php
message: '#Call to method PHPUnit\\Framework\\Assert::assertNull\(\) with string will always evaluate to false.#'
-
path: Controller/LoginController.php
message: '#Parameter \#2 \$values of method Symfony\\Component\\HttpFoundation\\ResponseHeaderBag::set\(\) expects array<string>|string, int given.#'
-
path: Tests/
message: '#Parameter \#2 \$response of method Sulu\\Bundle\\TestBundle\\Testing\\SuluTestCase::assertHttpStatusCode\(\) expects Symfony\\Component\\HttpFoundation\\Response, object given#'
-
path: Tests/
message: '#Call to an undefined method object::getContent().#'
- '#Parameter \#1 \$confirmationKey of method Sulu\\Bundle\\SecurityBundle\\Entity\\User::setConfirmationKey\(\) expects string, null given.#'
- '#Parameter \#1 \$passwordResetTokenExpiresAt of method Sulu\\Bundle\\SecurityBundle\\Entity\\User::setPasswordResetTokenExpiresAt\(\) expects DateTime, null given.#'
- '#Parameter \#1 \$passwordResetToken of method Sulu\\Bundle\\SecurityBundle\\Entity\\User::setPasswordResetToken\(\) expects string, null given.#'
- '#Call to an undefined method Sulu\\Bundle\\CommunityBundle\\Tests\\Unit\\Controller\\SaveMediaTraitTest::get\(\).#'
- '#Parameter \#3 \$userId of method Sulu\\Bundle\\MediaBundle\\Media\\Manager\\MediaManagerInterface::save\(\) expects int, int|null given.#'