Skip to content

Commit

Permalink
Update Psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMorel committed Dec 22, 2021
1 parent f89e347 commit 78f7a4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/TimeZoneRegion.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 78f7a4f

Please sign in to comment.