forked from pehapkari/pehapkari.cz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
46 lines (35 loc) · 2.76 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
43
44
45
46
includes:
- 'vendor/phpstan/phpstan-doctrine/extension.neon'
- 'vendor/symplify/phpstan-extensions/config/config.neon'
services:
- { class: Pehapkari\Utils\PHPStan\Rule\SelectWithGroupByRule, tags: [phpstan.rules.rule] }
parameters:
level: max
reportUnmatchedIgnoredErrors: false
excludes_analyse:
- "*/Entity*"
- '*/var/cache/*'
- '*/var/log/*'
- 'statie/tests'
# temporary
- 'packages/Youtube/src/FacebookVideosProvider/PehapkariFacebookPageVideosProvider.php'
- 'packages/Marketing/src/Social/FacebookPublisher.php'
ignoreErrors:
# known value
- '#Method Pehapkari\\Statie\\Posts\\Year2018\\Cart\\Infrastructure\\DoctrineCartRepository::find\(\) should Pehapkari\\Statie\\Posts\\Year2018\\Cart\\Domain\\Cart|null but returns object|null#'
# not sure about this
# known child
- '#Method Pehapkari\\Statie\\PostsProvider\:\:provide\(\) should return array<Symplify\\Statie\\Renderable\\File\\PostFile\> but returns array<Symplify\\Statie\\Generator\\Renderable\\File\\AbstractGeneratorFile\>#'
# desired sub-type
- '#Method Pehapkari\\DependencyInjection\\StatieFactory\:\:createStatieKernel\(\) should return Symfony\\Component\\DependencyInjection\\Container but returns Symfony\\Component\\DependencyInjection\\ContainerInterface#'
# Iterator false positives
- '#PHPDoc tag @return with type array<Twig\\TwigFilter\> is incompatible with native type Iterator#'
- '#Return type \(Iterator\) of method Pehapkari\\Twig\\Extension\\MarkdownExtension\:\:getFilters\(\) should be compatible with return type \(array<Twig\\TwigFilter\>\) of method Twig\\Extension\\AbstractExtension\:\:getFilters\(\)#'
- '#Return type \(Iterator\) of method Pehapkari\\Twig\\Extension\\MarkdownExtension\:\:getFilters\(\) should be compatible with return type \(array<Twig\\TwigFilter\>\) of method Twig\\Extension\\ExtensionInterface\:\:getFilters\(\)#'
- '#(.*)Doctrine\\ORM\\EntityManagerInterface#'
- '#Call to an undefined method object\:\:setRelativeUploadDestination\(\)#'
- '#Method Pehapkari\\Youtube\\Controller\\VideoController\:\:getVideoBySlug\(\) should return Pehapkari\\Youtube\\ValueObject\\Video but returns object#'
- '#Unreachable statement \- code above always terminates#'
- '#Method Pehapkari\\Github\\EventSubscriber\\CatchTemplateEventSubscriber\:\:resolveControllerMethod\(\) should return string but returns object\|string#'
- '#Parameter \#1 \$object of function get_class expects object, object\|string given#'
- '#Method Pehapkari\\Youtube\\Controller\\VideoDetailController\:\:getVideoBySlug\(\) should return Pehapkari\\Youtube\\ValueObject\\Video but returns object#'