forked from symbiote/silverstripe-memberprofiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
23 lines (23 loc) · 1.08 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
#
# To disable this in .travis.yml, comment out the PHPSTAN_TEST flag
#
parameters:
earlyTerminatingMethodCalls:
Controller:
- redirect
excludes_analyse:
- silverstripe-cache
- tests/bootstrap-phpstan.php
ignoreErrors:
# No SilverStripe 4 support yet
- '%undefined property SilverStripe\\Security\\Member::%'
- '%undefined property SilverStripe\\ORM\\DataObject::%'
# Ignore because added by MemberProfileExtension
- '%undefined method SilverStripe\\Security\\Member::getPublicFields()%'
- '%undefined method SilverStripe\\Security\\Member::setPublicFields()%'
# Ignore as 'MemberProfileExtension' have no context with $this->owner.
- '%undefined method SilverStripe\\ORM\\DataObject::ProfilePage()%'
- '%undefined method SilverStripe\\ORM\\DataObject::Groups()%'
# Unsupported introspection level
- '%Call to an undefined method SilverStripe\\Forms\\FormField::setCanBeEmpty()%'
- '%Call to an undefined method SilverStripe\\Forms\\Form::enableSpamProtection()%'