Skip to content

Commit

Permalink
Fix grammar in PropertyTypeChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-worman committed Dec 15, 2022
1 parent 72d3919 commit eb35fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __invoke(ReflectionProperty $fromProperty, ReflectionProperty $t

return Changes::fromList(Change::changed(
Str\format(
'Type type of property %s changed from %s to %s',
'Type of property %s changed from %s to %s',
($this->formatProperty)($fromProperty),
$fromType?->__toString() ?? 'having no type',
$toType?->__toString() ?? 'having no type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ class TheClass {
'duplicatePropertyTypesBeingDeduplicatedAreNotBcBreaks' => [],
'propertyTypeBeingDuplicatedAreNotBcBreaks' => [],
'propertyWithComplexDocblockThatCannotBeParsed' => [],
'propertyWithDocblockTypeHintChangeToNativeTypeHint' => ['[BC] CHANGED: Type type of property TheClass#$propertyWithDocblockTypeHintChangeToNativeTypeHint changed from having no type to int'],
'propertyWithDocblockTypeHintChangeToNativeTypeHintAndTypeChange' => ['[BC] CHANGED: Type type of property TheClass#$propertyWithDocblockTypeHintChangeToNativeTypeHintAndTypeChange changed from having no type to float'],
'propertyWithDeclaredTypeRemoved' => ['[BC] CHANGED: Type type of property TheClass#$propertyWithDeclaredTypeRemoved changed from int to having no type'],
'propertyWithDocblockTypeHintChangeToNativeTypeHint' => ['[BC] CHANGED: Type of property TheClass#$propertyWithDocblockTypeHintChangeToNativeTypeHint changed from having no type to int'],
'propertyWithDocblockTypeHintChangeToNativeTypeHintAndTypeChange' => ['[BC] CHANGED: Type of property TheClass#$propertyWithDocblockTypeHintChangeToNativeTypeHintAndTypeChange changed from having no type to float'],
'propertyWithDeclaredTypeRemoved' => ['[BC] CHANGED: Type of property TheClass#$propertyWithDeclaredTypeRemoved changed from int to having no type'],
];

return array_combine(
Expand Down

0 comments on commit eb35fd8

Please sign in to comment.