diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2022-02-28 09:26:52 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2022-11-27 19:45:03 +0000 |
| commit | f117d295282d6129a796c4a62dd364e5c306c903 (patch) | |
| tree | ae495feef18afbfac20503d91b1f8d0130d462aa /app | |
| parent | 60df783763b7bb201c1baf033ce1dca79fff1ce7 (diff) | |
| download | webtrees-f117d295282d6129a796c4a62dd364e5c306c903.tar.gz webtrees-f117d295282d6129a796c4a62dd364e5c306c903.tar.bz2 webtrees-f117d295282d6129a796c4a62dd364e5c306c903.zip | |
PHP 8.0 - resource -> GdImage
Diffstat (limited to 'app')
| -rw-r--r-- | app/Module/FanChartModule.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/Module/FanChartModule.php b/app/Module/FanChartModule.php index f608091bb1..bcf60d20b7 100644 --- a/app/Module/FanChartModule.php +++ b/app/Module/FanChartModule.php @@ -28,6 +28,7 @@ use Fisharebest\Webtrees\Registry; use Fisharebest\Webtrees\Services\ChartService; use Fisharebest\Webtrees\Validator; use Fisharebest\Webtrees\Webtrees; +use GdImage; use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; @@ -489,12 +490,12 @@ class FanChartModule extends AbstractModule implements ModuleChartInterface, Req /** * Convert a CSS color into a GD color. * - * @param resource $image - * @param string $css_color + * @param GdImage $image + * @param string $css_color * * @return int */ - protected function imageColor($image, string $css_color): int + protected function imageColor(GdImage $image, string $css_color): int { return imagecolorallocate( $image, |
