summaryrefslogtreecommitdiff
path: root/app/php/dto/TimezoneDTO.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-05-13 13:26:11 +0200
committeremkael <emkael@tlen.pl>2016-05-13 13:28:25 +0200
commitb42c172699c8354717d505b535a93f96ede57475 (patch)
tree9a638b34bad115c2f20fa0a3bb919b8887bea81b /app/php/dto/TimezoneDTO.php
parent68f962ed70ea9e5aae93cca956b9ec11c5150c3c (diff)
* type hinting wherever it's possible
Diffstat (limited to 'app/php/dto/TimezoneDTO.php')
-rw-r--r--app/php/dto/TimezoneDTO.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/php/dto/TimezoneDTO.php b/app/php/dto/TimezoneDTO.php
index 5f89cca..e4078e6 100644
--- a/app/php/dto/TimezoneDTO.php
+++ b/app/php/dto/TimezoneDTO.php
@@ -10,7 +10,7 @@ class TimezoneDTO {
public $Location;
public $FirstDayOfTheWeek;
- public function __construct($name) {
+ public function __construct(string $name) {
$tz = new DateTimeZone($name);
$this->Name = $tz->getName();
$this->Offset = $tz->getOffset(new DateTime());