Skip to content

Commit

Permalink
Default value property type does not observe strict types - it's alwa…
Browse files Browse the repository at this point in the history
…ys strict
  • Loading branch information
ondrejmirtes committed Jun 7, 2020
1 parent 1eedc10 commit fe72e26
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function processNode(Node $node, Scope $scope): array
}
}
$defaultValueType = $scope->getType($property->default);
if ($this->ruleLevelHelper->accepts($propertyType, $defaultValueType, $scope->isDeclareStrictTypes())) {
if ($this->ruleLevelHelper->accepts($propertyType, $defaultValueType, true)) {
continue;
}

Expand Down

0 comments on commit fe72e26

Please sign in to comment.