Skip to content

Commit 9c8815e

Browse files
committed
Fix docs: add missing $app when calling withMiddleware, add missing simicolons
1 parent d9c76fd commit 9c8815e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ phpunit.xml
44
.phpunit.cache
55
.phpcs-cache
66
phpstan.neon
7+
docs_php

docs/pages/facades.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ $messages = Store::load(
6161
new Criteria(
6262
new AggregateIdCriterion('123'),
6363
),
64-
)
64+
);
6565
```
6666
!!! note
6767

docs/pages/installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ You should add the middleware to your `bootstrap/app.php` file.
4141
```php
4242
use Patchlevel\LaravelEventSourcing\Middleware\EventSourcingMiddleware;
4343

44-
->withMiddleware(static function (Middleware $middleware): void {
44+
$app->withMiddleware(static function (Middleware $middleware): void {
4545
$middleware->append(EventSourcingMiddleware::class);
46-
})
46+
});
4747
```
4848
!!! success
4949

0 commit comments

Comments
 (0)