File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 17
17
"doctrine/persistence" : " <1.3"
18
18
},
19
19
"require-dev" : {
20
- "consistence/coding-standard" : " ^3.0.1 " ,
20
+ "consistence/coding-standard" : " ^3.10 " ,
21
21
"dealerdirect/phpcodesniffer-composer-installer" : " ^0.7.0" ,
22
22
"doctrine/collections" : " ^1.0" ,
23
23
"doctrine/common" : " ^2.7 || ^3.0" ,
31
31
"phpstan/phpstan-strict-rules" : " ^0.12" ,
32
32
"phpunit/phpunit" : " ^7.0" ,
33
33
"ramsey/uuid-doctrine" : " ^1.5.0" ,
34
- "slevomat/coding-standard" : " ^4.5.2 "
34
+ "slevomat/coding-standard" : " ^6.4 "
35
35
},
36
36
"config" : {
37
37
"platform" : {
Original file line number Diff line number Diff line change 19
19
<property name =" newlinesCountBetweenOpenTagAndDeclare" value =" 0" />
20
20
</properties >
21
21
</rule >
22
- <rule ref =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration " >
22
+ <rule ref =" SlevomatCodingStandard.TypeHints.ParameterTypeHint " >
23
23
<properties >
24
24
<property name =" usefulAnnotations" type =" array" value ="
25
25
@dataProvider,
30
30
<exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification" />
31
31
<exclude name =" SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableReturnTypeHintSpecification" />
32
32
</rule >
33
+ <rule ref =" SlevomatCodingStandard.TypeHints.PropertyTypeHint" >
34
+ <properties >
35
+ <property name =" enableNativeTypeHint" value =" false" />
36
+ </properties >
37
+ <exclude name =" SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingTraversableTypeHintSpecification" />
38
+ </rule >
39
+ <rule ref =" SlevomatCodingStandard.TypeHints.ReturnTypeHint" >
40
+ <properties >
41
+ <property name =" enableObjectTypeHint" value =" false" />
42
+ </properties >
43
+ <exclude name =" SlevomatCodingStandard.TypeHints.ReturnTypeHint.MissingTraversableTypeHintSpecification" />
44
+ </rule >
33
45
<rule ref =" SlevomatCodingStandard.ControlStructures.AssignmentInCondition" />
34
- <rule ref =" SlevomatCodingStandard.ControlStructures .DisallowEqualOperators" />
46
+ <rule ref =" SlevomatCodingStandard.Operators .DisallowEqualOperators" />
35
47
<rule ref =" SlevomatCodingStandard.ControlStructures.EarlyExit" />
36
48
<rule ref =" SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming" />
37
49
<rule ref =" SlevomatCodingStandard.Classes.SuperfluousInterfaceNaming" />
Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ private function getResolvedRepositoryClass(): string
78
78
$ objectManager = $ this ->getObjectManager ();
79
79
if ($ this ->repositoryClass !== null ) {
80
80
return $ this ->resolvedRepositoryClass = $ this ->repositoryClass ;
81
- } elseif ($ objectManager !== null && get_class ($ objectManager ) === 'Doctrine\ODM\MongoDB\DocumentManager ' ) {
81
+ }
82
+
83
+ if ($ objectManager !== null && get_class ($ objectManager ) === 'Doctrine\ODM\MongoDB\DocumentManager ' ) {
82
84
return $ this ->resolvedRepositoryClass = 'Doctrine\ODM\MongoDB\Repository\DocumentRepository ' ;
83
85
}
84
86
You can’t perform that action at this time.
0 commit comments