Skip to content

Commit

Permalink
Merge branch '3.x-dev' of https://github.com/joomla-framework/event i…
Browse files Browse the repository at this point in the history
…nto 3.x-dev
  • Loading branch information
Hackwar committed Oct 6, 2023
2 parents d3338af + 8d12de5 commit 3b0e58a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Tests/LazyServiceEventListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ static function (ContainerInterface $container)
}

/**
* @testdox The listener forwards a call to an invokable object
* @testdox The listener forwards a call to an invocable object
*
* @covers Joomla\Event\LazyServiceEventListener
*/
public function testListenerTriggersAnInvokableClass()
public function testListenerTriggersAnInvocableClass()
{
$serviceId = 'lazy.object';

Expand Down Expand Up @@ -168,11 +168,11 @@ public function testListenerCannotTriggerAnUnknownService()
}

/**
* @testdox The listener cannot forward a call to an object when no method name is provided and the object is not invokable
* @testdox The listener cannot forward a call to an object when no method name is provided and the object is not invocable
*
* @covers Joomla\Event\LazyServiceEventListener
*/
public function testListenerCannotTriggerAMethodWhenMethodNameNotGivenAndClassNotInvokable()
public function testListenerCannotTriggerAMethodWhenMethodNameNotGivenAndClassNotInvocable()
{
$this->expectException(\InvalidArgumentException::class);
$this->expectExceptionMessage(
Expand Down
2 changes: 1 addition & 1 deletion docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ContentModel implements DispatcherAwareInterface

### Immutable Events

An immutable event cannot be modified after its instanciation.
An immutable event cannot be modified after its instantiation.

It is useful when you don't want the listeners to manipulate it (they can only inspect it).

Expand Down
2 changes: 1 addition & 1 deletion src/Dispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public function clearEvents()
/**
* Count the number of registered event.
*
* @return integer The numer of registered events.
* @return integer The number of registered events.
*
* @since 1.0
* @deprecated 3.0 Default event objects will no longer be supported
Expand Down
2 changes: 1 addition & 1 deletion src/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function clearArguments()
* @return void
*
* @since 1.0
* @deprecated 3.0 Use stopPropogation instead
* @deprecated 3.0 Use stopPropagation instead
*/
public function stop()
{
Expand Down
2 changes: 1 addition & 1 deletion src/EventImmutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

/**
* Implementation of an immutable Event.
* An immutable event cannot be modified after instanciation :
* An immutable event cannot be modified after instantiation :
*
* - its propagation cannot be stopped
* - its arguments cannot be modified
Expand Down

0 comments on commit 3b0e58a

Please sign in to comment.