-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.baseline-phan.php
47 lines (46 loc) · 3.27 KB
/
.baseline-phan.php
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
47
<?php
/**
* This is an automatically generated baseline for Phan issues.
* When Phan is invoked with --load-baseline=path/to/baseline.php,
* The pre-existing issues listed in this file won't be emitted.
*
* This file can be updated by invoking Phan with --save-baseline=path/to/baseline.php
* (can be combined with --load-baseline)
*/
return [
// # Issue statistics:
// PhanUndeclaredStaticMethod : 160+ occurrences
// PhanCompatibleNamedArgument : 20+ occurrences
// PhanDeprecatedFunction : 20+ occurrences
// PhanRedefinedExtendedClass : 10+ occurrences
// PhanUndeclaredMethod : 5 occurrences
// PhanTypeMismatchArgumentProbablyReal : 1 occurrence
// PhanTypeMismatchReturnSuperType : 1 occurrence
// Currently, file_suppressions and directory_suppressions are the only supported suppressions
'file_suppressions' => [
'src/Address/Address.php' => ['PhanCompatibleNamedArgument'],
'src/Currency/Bridge/Doctrine/CurrencyType.php' => ['PhanDeprecatedFunction'],
'src/Email/Bridge/Doctrine/EmailType.php' => ['PhanDeprecatedFunction'],
'src/Email/Email.php' => ['PhanDeprecatedFunction'],
'src/Money/Bridge/Doctrine/MoneyType.php' => ['PhanDeprecatedFunction'],
'src/Money/Money.php' => ['PhanDeprecatedFunction'],
'src/Uri/Bridge/Doctrine/UriType.php' => ['PhanDeprecatedFunction', 'PhanTypeMismatchReturnSuperType'],
'src/Uri/Uri.php' => ['PhanDeprecatedFunction'],
'tests/Address/AddressTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Address/Bridge/Symfony/Form/Type/AddressTypeTest.php' => ['PhanUndeclaredStaticMethod'],
'tests/Email/Bridge/Doctrine/EmailTypeTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredMethod', 'PhanUndeclaredStaticMethod'],
'tests/Email/EmailTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredMethod', 'PhanUndeclaredStaticMethod'],
'tests/Ip/IpTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Money/Bridge/Doctrine/MoneyTypeTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredMethod', 'PhanUndeclaredStaticMethod'],
'tests/Money/Bridge/Symfony/Form/Type/MoneyTypeTest.php' => ['PhanUndeclaredStaticMethod'],
'tests/Money/MoneyTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Payment/PaymentTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Phone/PhoneTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Tax/TaxTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Uri/UriTest.php' => ['PhanRedefinedExtendedClass', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredMethod', 'PhanUndeclaredStaticMethod'],
'tests/Vat/VatNumberTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
'tests/Vat/VatRateTest.php' => ['PhanRedefinedExtendedClass', 'PhanUndeclaredStaticMethod'],
],
// 'directory_suppressions' => ['src/directory_name' => ['PhanIssueName1', 'PhanIssueName2']] can be manually added if needed.
// (directory_suppressions will currently be ignored by subsequent calls to --save-baseline, but may be preserved in future Phan releases)
];