Skip to content

Commit

Permalink
Merge pull request #443 from salehhashemi1992/typo/fix-typo
Browse files Browse the repository at this point in the history
Fix Some Typos in Method Names, Namespaces, and PHPDoc Annotations
  • Loading branch information
sebastiandedeyne authored Oct 11, 2023
2 parents dce4d3e + d7cf4c5 commit 277b41c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/InvalidEventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static function doesNotExist(string $eventHandlerClass): self

public static function notAProjector(object $object): self
{
return new static('`'.get_class($object).'` must implement Spatie\EventProcjetor\Projectors\Projector');
return new static('`'.get_class($object).'` must implement Spatie\EventProjector\Projectors\Projector');
}

public static function notAnEventHandler(object $object): self
Expand Down
2 changes: 1 addition & 1 deletion tests/AggregateRoots/CommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class CartClearedForCommand extends ShouldBeStored

assertCount(1, CartForCommand::retrieve($this->UUID)->cartItems->items);

// Assert that commands are dispatched to the AR iteself
// Assert that commands are dispatched to the AR itself
$bus->dispatch(new ClearCart(
$this->UUID,
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function functionThatHandlesMoneyAdd(MoneyAddedEvent $event)
$event->account->addMoney($event->amount);
}

public function anotherFunctionThatHandlesMoneySubstracted(MoneySubtractedEvent $event)
public function anotherFunctionThatHandlesMoneySubtracted(MoneySubtractedEvent $event)
{
$event->account->subtractMoney($event->amount);
}
Expand All @@ -23,7 +23,7 @@ public function functionWithoutTypeHint($parameter)
{
}

public function functionWithUnreleatedClassTypeHint(Collection $test)
public function functionWithUnrelatedClassTypeHint(Collection $test)
{
}

Expand Down

0 comments on commit 277b41c

Please sign in to comment.