Skip to content

Commit cb9b9b9

Browse files
committed
:octocat: phpcs-deprecations
1 parent ec8e251 commit cb9b9b9

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

phpcs.xml.dist

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@
8585
<rule ref="SlevomatCodingStandard.TypeHints.NullableTypeForNullDefaultValue"/>
8686
<rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"/>
8787
<rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"/>
88-
8988
<!--<rule ref="SlevomatCodingStandard.TypeHints.ReturnTypeHint"/>-->
9089

9190
<rule ref="SlevomatCodingStandard.Variables.DisallowVariableVariable"/>
@@ -108,13 +107,10 @@
108107

109108
<rule ref="SlevomatCodingStandard.Variables.DisallowSuperGlobalVariable">
110109
<exclude-pattern>examples</exclude-pattern>
111-
<exclude-pattern>src/Storage/SessionStorage.php</exclude-pattern>
112-
<exclude-pattern>tests/Storage/SessionStorageTest.php</exclude-pattern>
113110
</rule>
114111

115-
<rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat">
112+
<rule ref="SlevomatCodingStandard.TypeHints.DNFTypeHintFormat">
116113
<properties>
117-
<property name="withSpaces" value="no"/>
118114
<property name="shortNullable" value="no"/>
119115
<property name="nullPosition" value="last"/>
120116
</properties>
@@ -147,8 +143,6 @@
147143
<rule ref="Generic.ControlStructures.InlineControlStructure"/>
148144
<rule ref="Generic.Formatting.DisallowMultipleStatements"/>
149145
<!--<rule ref="Generic.Formatting.MultipleStatementAlignment"/>-->
150-
<rule ref="Generic.Formatting.NoSpaceAfterCast"/>
151-
<rule ref="Generic.Functions.CallTimePassByReference"/>
152146
<!--<rule ref="Generic.NamingConventions.InterfaceNameSuffix"/>-->
153147
<rule ref="Generic.NamingConventions.TraitNameSuffix"/>
154148
<rule ref="Generic.PHP.BacktickOperator"/>
@@ -183,7 +177,6 @@
183177

184178

185179
<rule ref="Squiz.Arrays.ArrayBracketSpacing"/>
186-
<rule ref="Squiz.Classes.DuplicateProperty"/>
187180
<rule ref="Squiz.Classes.LowercaseClassKeywords"/>
188181
<rule ref="Squiz.Classes.SelfMemberReference"/>
189182
<rule ref="Squiz.Commenting.DocCommentAlignment"/>
@@ -241,6 +234,12 @@
241234
<exclude-pattern>examples</exclude-pattern>
242235
</rule>
243236

237+
<rule ref="Generic.Formatting.SpaceAfterCast">
238+
<properties>
239+
<property name="spacing" value="0"/>
240+
</properties>
241+
</rule>
242+
244243
<rule ref="Generic.Formatting.SpaceAfterNot">
245244
<properties>
246245
<property name="spacing" value="0" />

0 commit comments

Comments
 (0)