diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-10-15 09:37:29 +0100 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-10-15 10:00:04 +0100 |
| commit | f70bcff589628705e50ed72a6fc6cbad68558677 (patch) | |
| tree | 7ba2634a56c109b5d3c211f47280f6bf661c826b /app/Http/RequestHandlers/PendingChangesLogData.php | |
| parent | 3ca82d5b4934cef8a821c341a788c483e4dcca87 (diff) | |
| download | webtrees-f70bcff589628705e50ed72a6fc6cbad68558677.tar.gz webtrees-f70bcff589628705e50ed72a6fc6cbad68558677.tar.bz2 webtrees-f70bcff589628705e50ed72a6fc6cbad68558677.zip | |
Prefer object to stdClass
Diffstat (limited to 'app/Http/RequestHandlers/PendingChangesLogData.php')
| -rw-r--r-- | app/Http/RequestHandlers/PendingChangesLogData.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/PendingChangesLogData.php b/app/Http/RequestHandlers/PendingChangesLogData.php index bb0e55aac7..b2896841f2 100644 --- a/app/Http/RequestHandlers/PendingChangesLogData.php +++ b/app/Http/RequestHandlers/PendingChangesLogData.php @@ -30,7 +30,6 @@ use Fisharebest\Webtrees\Tree; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -use stdClass; use function e; use function explode; @@ -78,7 +77,7 @@ class PendingChangesLogData implements RequestHandlerInterface $query = $this->pending_changes_service->changesQuery($params); - $callback = function (stdClass $row) use ($tree): array { + $callback = function (object $row) use ($tree): array { $old_lines = $row->old_gedcom === '' ? [] : explode("\n", $row->old_gedcom); $new_lines = $row->new_gedcom === '' ? [] : explode("\n", $row->new_gedcom); |
