From 78f7a4f2e87b6248d4fc5b0e614c5dbb2a47ef07 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Thu, 23 Dec 2021 00:58:40 +0100 Subject: [PATCH] Update Psalm --- composer.json | 2 +- src/TimeZoneRegion.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 11e9353..5ee7194 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "require-dev": { "phpunit/phpunit": "^9.0", "php-coveralls/php-coveralls": "^2.2", - "vimeo/psalm": "4.4.1" + "vimeo/psalm": "4.15.0" }, "suggest": { "ext-timezonedb": "This PECL extension provides up-to-date timezone information" diff --git a/src/TimeZoneRegion.php b/src/TimeZoneRegion.php index 9e93562..c84d2cb 100644 --- a/src/TimeZoneRegion.php +++ b/src/TimeZoneRegion.php @@ -114,9 +114,9 @@ public function getId() : string return $this->zone->getName(); } - public function getOffset(Instant $instant) : int + public function getOffset(Instant $pointInTime) : int { - $dateTime = new \DateTime('@' . $instant->getEpochSecond(), new DateTimeZone('UTC')); + $dateTime = new \DateTime('@' . $pointInTime->getEpochSecond(), new DateTimeZone('UTC')); return $this->zone->getOffset($dateTime); }