Skip to content

Commit 28444bf

Browse files
committed
PHPLIB-1106: Upgrade doctrine/coding-standard to ^11.1
Also bumps phpcs to ^3.7
1 parent 4067844 commit 28444bf

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"symfony/polyfill-php80": "^1.19"
1818
},
1919
"require-dev": {
20-
"squizlabs/php_codesniffer": "^3.6",
21-
"doctrine/coding-standard": "^9.0",
20+
"squizlabs/php_codesniffer": "^3.7",
21+
"doctrine/coding-standard": "^11.1",
2222
"symfony/phpunit-bridge": "^5.2",
2323
"vimeo/psalm": "^4.28"
2424
},

phpcs.xml.dist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,17 @@
2222
<!-- Exclude sniffs that require newer PHP versions -->
2323
<!-- ********************************************** -->
2424

25+
<!-- Requires PHP 7.3 -->
26+
<exclude name="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall.MissingTrailingComma" />
27+
2528
<!-- Requires PHP 7.4 -->
2629
<exclude name="SlevomatCodingStandard.ControlStructures.RequireNullCoalesceEqualOperator" />
2730

2831
<!-- Requires PHP 8.0 -->
2932
<exclude name="SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall" />
33+
<exclude name="SlevomatCodingStandard.Classes.RequireConstructorPropertyPromotion.RequiredConstructorPropertyPromotion" />
34+
<exclude name="SlevomatCodingStandard.Exceptions.RequireNonCapturingCatch.NonCapturingCatchRequired" />
35+
<exclude name="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat.DisallowedShortNullable" />
3036

3137

3238
<!-- *********************************** -->

0 commit comments

Comments
 (0)