Skip to content

Commit dffddb2

Browse files
authored
Fix grammar in user-facing exception (#3379)
1 parent 61db165 commit dffddb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/Arguments/Rector/ClassMethod/ArgumentAdderRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private function fillGapBetweenWithDefaultValue(MethodCall | StaticCall $node, i
212212
for ($index = $lastPosition + 1; $index < $position; ++$index) {
213213
$param = $classMethod->params[$index];
214214
if (! $param->default instanceof Expr) {
215-
throw new ShouldNotHappenException('Previous position does not has default value');
215+
throw new ShouldNotHappenException('Previous position does not have default value');
216216
}
217217

218218
$default = $this->nodePrinter->print($param->default);

src/NodeManipulator/PropertyManipulator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function isPropertyChangeableExceptConstructor(Property | Param $property
136136
{
137137
$class = $this->betterNodeFinder->findParentType($propertyOrParam, Class_::class);
138138

139-
// does not has parent type ClassLike? Possibly parent is changed by other rule
139+
// does not have parent type ClassLike? Possibly parent is changed by other rule
140140
if (! $class instanceof Class_) {
141141
return true;
142142
}

0 commit comments

Comments
 (0)