summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--resources/views/lists/locations-table.phtml4
-rw-r--r--resources/views/lists/media-table.phtml3
-rw-r--r--resources/views/lists/notes-table.phtml8
-rw-r--r--resources/views/lists/repositories-table.phtml2
-rw-r--r--resources/views/lists/sources-table.phtml8
5 files changed, 14 insertions, 11 deletions
diff --git a/resources/views/lists/locations-table.phtml b/resources/views/lists/locations-table.phtml
index a95bbc22a4..cd7d2ee6c4 100644
--- a/resources/views/lists/locations-table.phtml
+++ b/resources/views/lists/locations-table.phtml
@@ -31,7 +31,7 @@ $count_individuals = DB::table('individuals')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_families = DB::table('families')
@@ -44,7 +44,7 @@ $count_families = DB::table('families')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
?>
diff --git a/resources/views/lists/media-table.phtml b/resources/views/lists/media-table.phtml
index fd183ffdf5..cb0b2d16a6 100644
--- a/resources/views/lists/media-table.phtml
+++ b/resources/views/lists/media-table.phtml
@@ -31,6 +31,7 @@ $count_individuals = DB::table('individuals')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
+ ->map(static fn ($n) => (int) $n)
->all();
$count_families = DB::table('families')
@@ -43,6 +44,7 @@ $count_families = DB::table('families')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
+ ->map(static fn ($n) => (int) $n)
->all();
$count_sources = DB::table('sources')
@@ -55,6 +57,7 @@ $count_sources = DB::table('sources')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
+ ->map(static fn ($n) => (int) $n)
->all();
?>
diff --git a/resources/views/lists/notes-table.phtml b/resources/views/lists/notes-table.phtml
index 54ba1f74f6..ce3eb7ace2 100644
--- a/resources/views/lists/notes-table.phtml
+++ b/resources/views/lists/notes-table.phtml
@@ -31,7 +31,7 @@ $count_individuals = DB::table('individuals')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_families = DB::table('families')
@@ -44,7 +44,7 @@ $count_families = DB::table('families')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_media = DB::table('media')
@@ -57,7 +57,7 @@ $count_media = DB::table('media')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_sources = DB::table('sources')
@@ -70,7 +70,7 @@ $count_sources = DB::table('sources')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
?>
diff --git a/resources/views/lists/repositories-table.phtml b/resources/views/lists/repositories-table.phtml
index 82f1324fd2..3cabf0f333 100644
--- a/resources/views/lists/repositories-table.phtml
+++ b/resources/views/lists/repositories-table.phtml
@@ -31,7 +31,7 @@ $count_sources = DB::table('sources')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
?>
diff --git a/resources/views/lists/sources-table.phtml b/resources/views/lists/sources-table.phtml
index 6d2eb6c96b..8132da9d63 100644
--- a/resources/views/lists/sources-table.phtml
+++ b/resources/views/lists/sources-table.phtml
@@ -32,7 +32,7 @@ $count_individuals = DB::table('individuals')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_families = DB::table('families')
@@ -45,7 +45,7 @@ $count_families = DB::table('families')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_media = DB::table('media')
@@ -58,7 +58,7 @@ $count_media = DB::table('media')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
$count_notes = DB::table('other')
@@ -72,7 +72,7 @@ $count_notes = DB::table('other')
->groupBy(['l_to'])
->select(['l_to', new Expression('COUNT(*) AS total')])
->pluck('total', 'l_to')
- ->map(static fn (string $n) => (int) $n)
+ ->map(static fn ($n) => (int) $n)
->all();
?>