Skip to content

Commit 70d8252

Browse files
committed
[ci-review] Rector Rectify
1 parent 6d9fd4f commit 70d8252

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

rules/TypeDeclaration/PhpDocParser/TypeExpressionFromVarTagResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function resolveTypeExpressionFromVarTag(TypeNode $typeNode, Variable $va
110110
private function generateOrExpression(array $unionExpressions)
111111
{
112112
$booleanOr = new BooleanOr($unionExpressions[0], $unionExpressions[1]);
113-
if (count($unionExpressions) == 2) {
113+
if (count($unionExpressions) === 2) {
114114
return $booleanOr;
115115
}
116116

@@ -125,7 +125,7 @@ private function generateOrExpression(array $unionExpressions)
125125
private function generateAndExpression(array $intersectionExpressions)
126126
{
127127
$booleanAnd = new BooleanAnd($intersectionExpressions[0], $intersectionExpressions[1]);
128-
if (count($intersectionExpressions) == 2) {
128+
if (count($intersectionExpressions) === 2) {
129129
return $booleanAnd;
130130
}
131131

src/Configuration/OnlyRuleResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function resolve(string $rule): string
4848
}
4949

5050
$matching = array_unique($matching);
51-
if (count($matching) == 1) {
51+
if (count($matching) === 1) {
5252
return $matching[0];
5353
}
5454

0 commit comments

Comments
 (0)