Skip to content

Commit fe72e26

Browse files
committed
Default value property type does not observe strict types - it's always strict
1 parent 1eedc10 commit fe72e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Properties/DefaultValueTypesAssignedToPropertiesRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function processNode(Node $node, Scope $scope): array
5050
}
5151
}
5252
$defaultValueType = $scope->getType($property->default);
53-
if ($this->ruleLevelHelper->accepts($propertyType, $defaultValueType, $scope->isDeclareStrictTypes())) {
53+
if ($this->ruleLevelHelper->accepts($propertyType, $defaultValueType, true)) {
5454
continue;
5555
}
5656

0 commit comments

Comments
 (0)