|
| 1 | +<?xml version="1.0"?> |
| 2 | +<ruleset name="PHPStan deprecation rules"> |
| 3 | + <rule ref="vendor/consistence/coding-standard/Consistence/ruleset.xml"> |
| 4 | + <exclude name="Squiz.Functions.GlobalFunction.Found"/> |
| 5 | + <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameAfterKeyword"/> |
| 6 | + <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedClassNameInAnnotation"/> |
| 7 | + <exclude name="SlevomatCodingStandard.Namespaces.FullyQualifiedExceptions"/> |
| 8 | + <exclude name="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/> |
| 9 | + </rule> |
| 10 | + <rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"> |
| 11 | + <properties> |
| 12 | + <property name="caseSensitive" value="false"/> |
| 13 | + </properties> |
| 14 | + </rule> |
| 15 | + <rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes"> |
| 16 | + <properties> |
| 17 | + <property name="newlinesCountBetweenOpenTagAndDeclare" value="0"/> |
| 18 | + </properties> |
| 19 | + </rule> |
| 20 | + <rule ref="SlevomatCodingStandard.TypeHints.TypeHintDeclaration"> |
| 21 | + <properties> |
| 22 | + <property name="usefulAnnotations" type="array" value=" |
| 23 | + @dataProvider, |
| 24 | + @requires |
| 25 | + "/> |
| 26 | + </properties> |
| 27 | + </rule> |
| 28 | + <rule ref="SlevomatCodingStandard.ControlStructures.AssignmentInCondition"/> |
| 29 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowEqualOperators"/> |
| 30 | + <rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit"/> |
| 31 | + <rule ref="SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming"/> |
| 32 | + <rule ref="SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming"/> |
| 33 | + <rule ref="SlevomatCodingStandard.ControlStructures.DisallowShortTernaryOperator"/> |
| 34 | + <rule ref="SlevomatCodingStandard.Namespaces.RequireOneNamespaceInFile"/> |
| 35 | + <rule ref="SlevomatCodingStandard.PHP.ShortList"/> |
| 36 | + <rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> |
| 37 | + <properties> |
| 38 | + <property name="rootNamespaces" type="array" value="src=>PHPStan,tests=>PHPStan"/> |
| 39 | + </properties> |
| 40 | + </rule> |
| 41 | + <exclude-pattern>tests/*/data</exclude-pattern> |
| 42 | +</ruleset> |
0 commit comments