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/MapDataExportCSV.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/MapDataExportCSV.php')
| -rw-r--r-- | app/Http/RequestHandlers/MapDataExportCSV.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/Http/RequestHandlers/MapDataExportCSV.php b/app/Http/RequestHandlers/MapDataExportCSV.php index 201610fe31..985f446ee2 100644 --- a/app/Http/RequestHandlers/MapDataExportCSV.php +++ b/app/Http/RequestHandlers/MapDataExportCSV.php @@ -26,7 +26,6 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; use RuntimeException; -use stdClass; use function addcslashes; use function array_map; @@ -128,7 +127,7 @@ class MapDataExportCSV implements RequestHandlerInterface $max_level = max($max_level, count($place->hierarchy)); } - $places = array_map(function (stdClass $place) use ($max_level): array { + $places = array_map(function (object $place) use ($max_level): array { return array_merge( [ count($place->hierarchy) - 1, |
