We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11df7e1 commit 44c0d2dCopy full SHA for 44c0d2d
src/MonologHandler.php
@@ -42,8 +42,8 @@ protected function addContext(array $context = [])
42
$data = @call_user_func($config['person_fn']);
43
if (! empty($data)) {
44
if (is_object($data)) {
45
- if (isset($data->id)) {
46
- $person['id'] = $data->id;
+ if (method_exists($data, 'getKey')) {
+ $person['id'] = $data->getKey();
47
if (isset($data->username)) {
48
$person['username'] = $data->username;
49
}
0 commit comments