|
1 | 1 | <?xml version="1.0"?>
|
2 |
| -<ruleset name="phpDocumentor"> |
3 |
| - <description>The coding standard for phpDocumentor.</description> |
| 2 | +<ruleset name="TypeResolver"> |
| 3 | + <description>The coding standard for this library.</description> |
4 | 4 |
|
5 | 5 | <file>src</file>
|
6 | 6 | <file>tests/unit</file>
|
7 |
| - <exclude-pattern>*/tests/unit/Types/ContextFactoryTest.php</exclude-pattern> |
| 7 | + <exclude-pattern>*/tests/unit/Types/ContextFactoryTest\.php</exclude-pattern> |
8 | 8 | <arg value="p"/>
|
9 | 9 |
|
| 10 | + <!-- Set the minimum PHP version for PHPCompatibility. |
| 11 | + This should be kept in sync with the requirements in the composer.json file. --> |
| 12 | + <config name="testVersion" value="7.2-"/> |
| 13 | + |
10 | 14 | <rule ref="phpDocumentor">
|
| 15 | + <!-- Property type declarations are a PHP 7.4 feature. --> |
| 16 | + <exclude name="SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint"/> |
11 | 17 | </rule>
|
12 | 18 |
|
13 | 19 | <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix">
|
14 |
| - <exclude-pattern>*/src/*/Abstract*.php</exclude-pattern> |
| 20 | + <exclude-pattern>*/src/*/Abstract*\.php</exclude-pattern> |
15 | 21 | </rule>
|
16 | 22 |
|
17 | 23 | <rule ref="PSR1.Files.SideEffects.FoundWithSymbols">
|
18 |
| - <exclude-pattern>*/src/PseudoTypes/False_.php</exclude-pattern> |
19 |
| - <exclude-pattern>*/src/PseudoTypes/True_.php</exclude-pattern> |
| 24 | + <exclude-pattern>*/src/PseudoTypes/False_\.php</exclude-pattern> |
| 25 | + <exclude-pattern>*/src/PseudoTypes/True_\.php</exclude-pattern> |
| 26 | + </rule> |
| 27 | + |
| 28 | + <!-- Ignore two PHP 8.0 constants which are being polyfilled in the file using them. --> |
| 29 | + <rule ref="PHPCompatibility.Constants.NewConstants.t_name_qualifiedFound"> |
| 30 | + <exclude-pattern>*/src/Types/ContextFactory\.php</exclude-pattern> |
| 31 | + </rule> |
| 32 | + <rule ref="PHPCompatibility.Constants.NewConstants.t_name_fully_qualifiedFound"> |
| 33 | + <exclude-pattern>*/src/Types/ContextFactory\.php</exclude-pattern> |
20 | 34 | </rule>
|
21 | 35 | </ruleset>
|
0 commit comments