summaryrefslogtreecommitdiff
path: root/ext/intl/timezone/timezone.stub.php
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-01-04 11:01:59 +0100
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-01-05 23:55:14 +0100
commit019e8d438c3cdbae548a8d13ee13a71b42e7306e (patch)
treecc6012c8e23c349476c23aef56415d17ad0302b7 /ext/intl/timezone/timezone.stub.php
parentade217d05c81eb8fef75d786652cf59e8fd3d1c4 (diff)
downloadphp-git-019e8d438c3cdbae548a8d13ee13a71b42e7306e.tar.gz
Throw exception for unconstructed intl objects
Closes GH-5052
Diffstat (limited to 'ext/intl/timezone/timezone.stub.php')
-rw-r--r--ext/intl/timezone/timezone.stub.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/intl/timezone/timezone.stub.php b/ext/intl/timezone/timezone.stub.php
index 06f5424aa4..332fb9c1d2 100644
--- a/ext/intl/timezone/timezone.stub.php
+++ b/ext/intl/timezone/timezone.stub.php
@@ -31,7 +31,7 @@ class IntlTimeZone
/** @return string|false */
public function getDisplayName(bool $isDaylight = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null) {}
- /** @return int|false */
+ /** @return int */
public function getDSTSavings() {}
/** @return string|false */
@@ -52,7 +52,7 @@ class IntlTimeZone
/** @return bool */
public function getOffset(float $date, bool $local, &$rawOffset, &$dstOffset) {}
- /** @return int|false */
+ /** @return int */
public function getRawOffset() {}
/** @return string|false */
@@ -101,7 +101,7 @@ function intltz_get_canonical_id(string $zoneId, &$isSystemID = null): string|fa
function intltz_get_display_name(IntlTimeZone $tz, bool $isDaylight = false, int $style = IntlTimeZone::DISPLAY_LONG, ?string $locale = null): string|false {}
-function intltz_get_dst_savings(IntlTimeZone $tz): int|false {}
+function intltz_get_dst_savings(IntlTimeZone $tz): int {}
function intltz_get_equivalent_id(string $zoneId, int $index): string|false {}
@@ -115,7 +115,7 @@ function intltz_get_id(IntlTimeZone $tz): string|false {}
function intltz_get_offset(IntlTimeZone $tz, float $date, bool $local, &$rawOffset, &$dstOffset): bool {}
-function intltz_get_raw_offset(IntlTimeZone $tz): int|false {}
+function intltz_get_raw_offset(IntlTimeZone $tz): int {}
function intltz_get_region(string $zoneId): string|false {}