Skip to content

Commit

Permalink
Typo, clarification and doc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Nov 10, 2020
1 parent c4080b7 commit 5f2ab53
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ $decorators = [
> If a callable is used as a decorator, it is always invoked, regardless of its signature.
>
> If the callable returns an instance of a decorator (an implementation of `AppDecoratorInterface`),
> it is be invoked too.
> the returned decorator is immediately applied too.
>
> The callables receive the App instance as the first argument,
> The callables receive the instance of the App being decorated as the first argument,
> which is the same signature as the one of `AppDecoratorInterface::decorate` method.
>
Expand Down
3 changes: 1 addition & 2 deletions src/SlimFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Slim\Interfaces\MiddlewareDispatcherInterface;
use Slim\Interfaces\RouteCollectorInterface;
use Slim\Interfaces\RouteResolverInterface;
use Traversable;

/**
* Slim Factory.
Expand Down Expand Up @@ -66,7 +65,7 @@ public static function buildFromContainer(ContainerInterface $container, iterabl
* - a callable that directly decorates the slim app instance (passed in as the first argument)
*
* @param App $slim
* @param array|Traversable $decorators
* @param iterable $decorators
* @return App returns the same instance, decorated
* @throws FactoryException
*/
Expand Down

0 comments on commit 5f2ab53

Please sign in to comment.