|
19 | 19 | <file>tests/</file> |
20 | 20 |
|
21 | 21 | <config name="installed_paths" value="../../slevomat/coding-standard"/> |
| 22 | + <config name="php_version" value="70200"/> |
22 | 23 |
|
23 | 24 | <rule ref="Generic.Arrays.DisallowLongArraySyntax"/> |
24 | 25 | <rule ref="Generic.Classes.DuplicateClassName"/> |
|
245 | 246 | </rule> |
246 | 247 |
|
247 | 248 | <rule ref="SlevomatCodingStandard.Arrays.TrailingArrayComma"/> |
248 | | - <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"> |
249 | | - <exclude name="SlevomatCodingStandard.Classes.ModernClassNameReference.ClassNameReferencedViaFunctionCall"/> <!-- after bumping to PHP8 --> |
250 | | - </rule> |
| 249 | + <rule ref="SlevomatCodingStandard.Classes.ModernClassNameReference"/> |
251 | 250 | <rule ref="SlevomatCodingStandard.Classes.ClassConstantVisibility" /> |
252 | 251 | <rule ref="SlevomatCodingStandard.Classes.ClassStructure"> |
253 | 252 | <properties> |
|
303 | 302 | <rule ref="SlevomatCodingStandard.Exceptions.ReferenceThrowableOnly"/> |
304 | 303 | <rule ref="SlevomatCodingStandard.Functions.DisallowArrowFunction"/> |
305 | 304 | <rule ref="SlevomatCodingStandard.Functions.DisallowNamedArguments"/> |
306 | | - <!-- after bumping PHP version |
307 | 305 | <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInDeclaration"/> |
308 | 306 | <rule ref="SlevomatCodingStandard.Functions.RequireTrailingCommaInCall"/> |
309 | | - --> |
310 | 307 | <rule ref="SlevomatCodingStandard.Functions.StaticClosure"/> |
311 | 308 | <rule ref="SlevomatCodingStandard.Functions.UselessParameterDefaultValue"/> |
312 | 309 | <rule ref="SlevomatCodingStandard.Functions.UnusedInheritedVariablePassedToClosure"/> |
|
346 | 343 | </properties> |
347 | 344 | </rule> |
348 | 345 | <rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly.PartialUse"/> |
349 | | - <!-- rule ref="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator" Since PHP 7.4--> |
| 346 | + <rule ref="SlevomatCodingStandard.Numbers.RequireNumericLiteralSeparator"/> |
350 | 347 | <rule ref="SlevomatCodingStandard.Operators.DisallowEqualOperators" /> |
351 | 348 | <rule ref="SlevomatCodingStandard.Operators.SpreadOperatorSpacing" /> |
352 | 349 | <rule ref="SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall" /> |
|
365 | 362 | <rule ref="SlevomatCodingStandard.TypeHints.NullTypeHintOnLastPosition" /> |
366 | 363 | <rule ref="SlevomatCodingStandard.TypeHints.UnionTypeHintFormat" /> |
367 | 364 | <rule ref="SlevomatCodingStandard.TypeHints.UselessConstantTypeHint" /> |
368 | | - <!-- after bumping php version to 7.4 |
369 | 365 | <rule ref="SlevomatCodingStandard.TypeHints.PropertyTypeHint"> |
370 | 366 | <properties> |
371 | | - <property name="enableNativeTypeHint" value="true"/> |
372 | 367 | <property name="traversableTypeHints" type="array" value=" |
373 | 368 | Generator, |
374 | 369 | Traversable, |
375 | 370 | Doctrine\Common\Collections\Collection |
376 | 371 | "/> |
377 | 372 | </properties> |
378 | 373 | </rule> |
379 | | - --> |
380 | | - |
381 | 374 | <rule ref="SlevomatCodingStandard.TypeHints.ParameterTypeHint"> |
382 | 375 | <properties> |
383 | 376 | <property name="traversableTypeHints" type="array" value=" |
|
397 | 390 | Traversable, |
398 | 391 | Doctrine\Common\Collections\Collection |
399 | 392 | "/> |
400 | | - <property name="enableMixedTypeHint" value="false"/> <!-- requires PHP 8.0 --> |
401 | | - <property name="enableStaticTypeHint" value="false"/> <!-- requires PHP 8.0 --> |
402 | | - <property name="enableUnionTypeHint" value="false"/> <!-- requires PHP 8.0 --> |
403 | | - <property name="enableIntersectionTypeHint" value="false"/> <!-- requires PHP 8.1 --> |
404 | | - <property name="enableNeverTypeHint" value="false"/> <!-- requires PHP 8.1 --> |
405 | | - <property name="enableStandaloneNullTrueFalseTypeHints" value="false"/> <!-- requires PHP 8.2 --> |
406 | 393 | </properties> |
407 | 394 | <exclude name="SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification"/><!-- this has problems with vendor libs, PHPStan checks this much more reliably --> |
408 | 395 | </rule> |
|
0 commit comments