Skip to content

Commit 0b4e84c

Browse files
committed
[dev][vendor] Upgrade 'doctrine/coding-standard' to ^9.0
- Disable "mixed" type hint for backward compatibility
1 parent ae2c741 commit 0b4e84c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpstan/phpstan": "^0.12.14",
2929
"php-coveralls/php-coveralls": "^2.1.0",
3030
"symfony/translation": "^4",
31-
"doctrine/coding-standard": "^7.0"
31+
"doctrine/coding-standard": "^9.0"
3232
},
3333
"scripts": {
3434
"phpstan": "phpstan analyse src/ -c phpstan.neon --level=7 --no-progress",

phpcs.xml.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,17 @@
4949
<property name="enableNativeTypeHint" value="false"/>
5050
</properties>
5151
</rule>
52+
53+
<!-- Disable "mixed" type hints only available since PHP 8.0 -->
54+
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint">
55+
<properties>
56+
<property name="enableMixedTypeHint" value="false"/>
57+
</properties>
58+
</rule>
59+
60+
<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint">
61+
<properties>
62+
<property name="enableMixedTypeHint" value="false"/>
63+
</properties>
64+
</rule>
5265
</ruleset>

0 commit comments

Comments
 (0)