diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2024-03-26 13:50:49 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2024-03-31 17:33:19 +0100 |
| commit | b50dba3a86d260384d07c30bedf82d8e78ab49f7 (patch) | |
| tree | 08d09731059dce1e80a1c6e5016fd79520605334 /app | |
| parent | d63ebb6fbc1a881a0fa67833b6abac71c67a31c5 (diff) | |
| download | webtrees-b50dba3a86d260384d07c30bedf82d8e78ab49f7.tar.gz webtrees-b50dba3a86d260384d07c30bedf82d8e78ab49f7.tar.bz2 webtrees-b50dba3a86d260384d07c30bedf82d8e78ab49f7.zip | |
PHP 8.4 compatibility
Diffstat (limited to 'app')
| -rw-r--r-- | app/Statistics.php | 6 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartCommonGiven.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartCommonSurname.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartFamilyWithSources.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartIndividualWithSources.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartMedia.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartMortality.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Google/ChartSex.php | 2 | ||||
| -rw-r--r-- | app/Statistics/Repository/IndividualRepository.php | 6 | ||||
| -rw-r--r-- | app/Statistics/Repository/Interfaces/IndividualRepositoryInterface.php | 2 |
10 files changed, 14 insertions, 14 deletions
diff --git a/app/Statistics.php b/app/Statistics.php index 8117d8ddc2..813c33724b 100644 --- a/app/Statistics.php +++ b/app/Statistics.php @@ -317,7 +317,7 @@ class Statistics implements */ public function chartIndisWithSources( string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { return $this->individual_repository->chartIndisWithSources($color_from, $color_to); } @@ -370,7 +370,7 @@ class Statistics implements */ public function chartFamsWithSources( string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { return $this->individual_repository->chartFamsWithSources($color_from, $color_to); } @@ -583,7 +583,7 @@ class Statistics implements public function chartSex( string|null $color_female = null, string|null $color_male = null, - string $color_unknown = null + string|null $color_unknown = null ): string { return $this->individual_repository->chartSex($color_female, $color_male, $color_unknown); } diff --git a/app/Statistics/Google/ChartCommonGiven.php b/app/Statistics/Google/ChartCommonGiven.php index 3e032b6617..728867ffa7 100644 --- a/app/Statistics/Google/ChartCommonGiven.php +++ b/app/Statistics/Google/ChartCommonGiven.php @@ -54,7 +54,7 @@ class ChartCommonGiven int $tot_indi, array $given, string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $color_from ??= 'ffffff'; $color_to ??= '84beff'; diff --git a/app/Statistics/Google/ChartCommonSurname.php b/app/Statistics/Google/ChartCommonSurname.php index 69566aa620..9797a34249 100644 --- a/app/Statistics/Google/ChartCommonSurname.php +++ b/app/Statistics/Google/ChartCommonSurname.php @@ -112,7 +112,7 @@ class ChartCommonSurname int $tot_indi, array $all_surnames, string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $color_from ??= 'ffffff'; $color_to ??= '84beff'; diff --git a/app/Statistics/Google/ChartFamilyWithSources.php b/app/Statistics/Google/ChartFamilyWithSources.php index 09683e5cd4..306de9b0e7 100644 --- a/app/Statistics/Google/ChartFamilyWithSources.php +++ b/app/Statistics/Google/ChartFamilyWithSources.php @@ -54,7 +54,7 @@ class ChartFamilyWithSources int $tot_fam, int $tot_fam_source, string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $color_from ??= 'ffffff'; $color_to ??= '84beff'; diff --git a/app/Statistics/Google/ChartIndividualWithSources.php b/app/Statistics/Google/ChartIndividualWithSources.php index a3f0da9d79..2b1f459d46 100644 --- a/app/Statistics/Google/ChartIndividualWithSources.php +++ b/app/Statistics/Google/ChartIndividualWithSources.php @@ -54,7 +54,7 @@ class ChartIndividualWithSources int $tot_indi, int $tot_indi_source, string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $color_from ??= 'ffffff'; $color_to ??= '84beff'; diff --git a/app/Statistics/Google/ChartMedia.php b/app/Statistics/Google/ChartMedia.php index 0f1570cdd5..087c979770 100644 --- a/app/Statistics/Google/ChartMedia.php +++ b/app/Statistics/Google/ChartMedia.php @@ -53,7 +53,7 @@ class ChartMedia public function chartMedia( array $media, string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $color_from ??= 'ffffff'; $color_to ??= '84beff'; diff --git a/app/Statistics/Google/ChartMortality.php b/app/Statistics/Google/ChartMortality.php index 5763a3d272..2ce4acecb4 100644 --- a/app/Statistics/Google/ChartMortality.php +++ b/app/Statistics/Google/ChartMortality.php @@ -54,7 +54,7 @@ class ChartMortality int $tot_l, int $tot_d, string|null $color_living = null, - string $color_dead = null + string|null $color_dead = null ): string { $color_living ??= '#ffffff'; $color_dead ??= '#cccccc'; diff --git a/app/Statistics/Google/ChartSex.php b/app/Statistics/Google/ChartSex.php index a92ee9c66e..3599b3e467 100644 --- a/app/Statistics/Google/ChartSex.php +++ b/app/Statistics/Google/ChartSex.php @@ -44,7 +44,7 @@ class ChartSex int $tot_u, string|null $color_female = null, string|null $color_male = null, - string $color_unknown = null + string|null $color_unknown = null ): string { $color_female ??= '#ffd1dc'; $color_male ??= '#84beff'; diff --git a/app/Statistics/Repository/IndividualRepository.php b/app/Statistics/Repository/IndividualRepository.php index 9507310437..8cf7e04e7d 100644 --- a/app/Statistics/Repository/IndividualRepository.php +++ b/app/Statistics/Repository/IndividualRepository.php @@ -1885,7 +1885,7 @@ class IndividualRepository implements IndividualRepositoryInterface */ public function chartIndisWithSources( string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $tot_indi = $this->totalIndividualsQuery(); $tot_indi_source = $this->totalIndisWithSourcesQuery(); @@ -1904,7 +1904,7 @@ class IndividualRepository implements IndividualRepositoryInterface */ public function chartFamsWithSources( string|null $color_from = null, - string $color_to = null + string|null $color_to = null ): string { $tot_fam = $this->totalFamiliesQuery(); $tot_fam_source = $this->totalFamsWithSourcesQuery(); @@ -1923,7 +1923,7 @@ class IndividualRepository implements IndividualRepositoryInterface public function chartSex( string|null $color_female = null, string|null $color_male = null, - string $color_unknown = null + string|null $color_unknown = null ): string { $tot_m = $this->totalSexMalesQuery(); $tot_f = $this->totalSexFemalesQuery(); diff --git a/app/Statistics/Repository/Interfaces/IndividualRepositoryInterface.php b/app/Statistics/Repository/Interfaces/IndividualRepositoryInterface.php index 1fc49d097f..48120b751f 100644 --- a/app/Statistics/Repository/Interfaces/IndividualRepositoryInterface.php +++ b/app/Statistics/Repository/Interfaces/IndividualRepositoryInterface.php @@ -190,6 +190,6 @@ interface IndividualRepositoryInterface public function chartSex( string|null $color_female = null, string|null $color_male = null, - string $color_unknown = null + string|null $color_unknown = null ): string; } |
