mirror of
https://github.com/friendica/friendica
synced 2025-05-02 05:04:24 +02:00
Fix Object parsing for Logging
This commit is contained in:
parent
8285a3a280
commit
b983559980
2 changed files with 12 additions and 1 deletions
|
@ -115,7 +115,7 @@ abstract class AbstractLogger implements LoggerInterface
|
|||
$output = [];
|
||||
|
||||
foreach ($input as $key => $value) {
|
||||
if (method_exists($value, '__toString')) {
|
||||
if (is_object($value) && method_exists($value, '__toString')) {
|
||||
$output[$key] = $value->__toString();
|
||||
} else {
|
||||
$output[$key] = $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue