forked from skaut/SRS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan.neon
33 lines (28 loc) · 1.58 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
parameters:
scanDirectories:
- %rootDir%/../../../app
- %rootDir%/../../../code-quality
- %rootDir%/../../../tests
ignoreErrors: # todo: odstranit
-
message: '#^Method [a-zA-Z0-9\\_:()]+ should return [a-zA-Z0-9\\_:,<>& ]+ but returns [a-zA-Z0-9\\_:,]+<(int|\(int\|string\)), object>\.$#'
path: app/Model/*/Repositories/*Repository.php
-
message: "#^Property App\\\\ApiModule\\\\Dto\\\\[a-zA-Z]+\\\\[a-zA-Z]+\\:\\:\\$[a-zA-Z]+ is never read, only written\\.$#"
path: app/ApiModule/Dto/*/*.php
-
message: '#^Parameter \#1 \$translator of method Ublaboo\\DataGrid\\DataGrid::setTranslator\(\) expects Nette\\Localization\\ITranslator, Nette\\Localization\\Translator given.$#'
path: app/*/*GridControl.php
-
message: '#^Method App\\Model\\User\\User::[a-zA-Z]+\(\) should return Doctrine\\Common\\Collections\\Collection<int, App\\Model\\Application\\[a-zA-Z]+Application> but returns Doctrine\\Common\\Collections\\Collection<int, App\\Model\\Application\\Application>\.$#'
path: app/Model/User/User.php
count: 4
services:
- class: CodeQuality\ObjectIdentityComparisonRule
tags: [ phpstan.rules.rule ]
- class: SkautisAliasesExtension
tags: [ phpstan.broker.propertiesClassReflectionExtension ]
- class: CodeQuality\SkautisWebserviceMagicMethodsExtension
tags: [ phpstan.broker.methodsClassReflectionExtension ]
- class: CodeQuality\PresenterDynamicReturnTypeExtension
tags: [ phpstan.broker.dynamicMethodReturnTypeExtension ]