Skip to content

Commit

Permalink
Merge pull request #716 from jack-worman/Fix_grammar_in_PropertyTypeC…
Browse files Browse the repository at this point in the history
…hanged

Fix grammar in PropertyTypeChanged
  • Loading branch information
Ocramius authored Dec 15, 2022
2 parents 72d3919 + eb35fd8 commit 4a98f2f
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 4a98f2f

Please sign in to comment.