File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 *
2020 * Requires the intl PHP extension.
2121 *
22- * @property string $date
22+ * @property int $age read-only
23+ * @property string $day read-only
24+ * @property string $dayOfWeek read-only
25+ * @property string $dayOfYear read-only
26+ * @property bool $dst read-only
27+ * @property string $hour read-only
28+ * @property bool $local read-only
29+ * @property string $minute read-only
30+ * @property string $month read-only
31+ * @property string $quarter read-only
32+ * @property string $second read-only
33+ * @property int $timestamp read-only
34+ * @property bool $utc read-only
35+ * @property string $weekOfMonth read-only
36+ * @property string $weekOfYear read-only
37+ * @property string $year read-only
38+ *
2339 * @see \CodeIgniter\I18n\TimeTest
2440 */
2541class Time extends DateTimeImmutable
Original file line number Diff line number Diff line change 2020 * This is not immutable! Some methods are immutable,
2121 * but some methods can alter the state.
2222 *
23- * @property string $date
23+ * @property int $age read-only
24+ * @property string $day read-only
25+ * @property string $dayOfWeek read-only
26+ * @property string $dayOfYear read-only
27+ * @property bool $dst read-only
28+ * @property string $hour read-only
29+ * @property bool $local read-only
30+ * @property string $minute read-only
31+ * @property string $month read-only
32+ * @property string $quarter read-only
33+ * @property string $second read-only
34+ * @property int $timestamp read-only
35+ * @property bool $utc read-only
36+ * @property string $weekOfMonth read-only
37+ * @property string $weekOfYear read-only
38+ * @property string $year read-only
2439 *
2540 * @deprecated Use Time instead.
2641 * @see \CodeIgniter\I18n\TimeLegacyTest
Original file line number Diff line number Diff line change @@ -1182,6 +1182,8 @@ public function __wakeup(): void
11821182 $ timezone = $ this ->timezone ;
11831183
11841184 $ this ->timezone = new DateTimeZone ($ timezone );
1185+
1186+ // @phpstan-ignore-next-line `$this->date` is a special property for PHP internal use.
11851187 parent ::__construct ($ this ->date , $ this ->timezone );
11861188 }
11871189}
You can’t perform that action at this time.
0 commit comments