Skip to content

Commit 9426fb5

Browse files
committed
Fix AuthUserProcessor for ResettableInterface signature
1 parent d37f9a5 commit 9426fb5

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@
1414

1515
<!-- /TOC -->
1616

17-
# Laravel and Lumen Extended Logging
17+
# Laravel Extended Logging
1818

1919
Provide some ready-made logging extensions to make it easier to deploy
20-
Laravel and Lumen into multiple containers.
20+
Laravel into multiple containers.
2121

2222
The main features are:
2323

@@ -105,7 +105,7 @@ use Consilience\Laravel\ExtendedLogging\Tap as ExtendedTap;
105105

106106
```php
107107
'channels' => [
108-
108+
109109
// Use this channel for running in a container.
110110
// Sends all logs to stderr in a structured form, with additional metadata.
111111
// Can be mixed in a stack with other channels.
@@ -121,7 +121,7 @@ use Consilience\Laravel\ExtendedLogging\Tap as ExtendedTap;
121121
'formatter' => JsonFormatter::class,
122122
'formatter_with' => [],
123123
],
124-
124+
125125
//...
126126
],
127127
```
@@ -212,7 +212,7 @@ whatever you use to capture and wrap the log messages.
212212
"subsystem": "admin-app"
213213
},
214214
},
215-
```
215+
```
216216

217217
## TODO
218218

src/Processor/AppNameProcessor.php

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
use Monolog\LogRecord;
10-
use Monolog\ResettableInterface;
1110
use Monolog\Processor\ProcessorInterface;
1211

1312
class AppNameProcessor implements ProcessorInterface

src/Processor/AuthUserProcessor.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __invoke(LogRecord $record)
2525
return $record;
2626
}
2727

28-
public function reset()
28+
public function reset(): void
2929
{
3030
$this->userId = null;
3131

src/Processor/JobNameProcessor.php

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
use Monolog\LogRecord;
10-
use Monolog\ResettableInterface;
1110
use Monolog\Processor\ProcessorInterface;
1211
use Consilience\Laravel\ExtendedLogging\LoggingService;
1312

0 commit comments

Comments
 (0)