File tree Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Expand file tree Collapse file tree 3 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 19
19
*
20
20
* Requires the intl PHP extension.
21
21
*
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
+ *
23
39
* @see \CodeIgniter\I18n\TimeTest
24
40
*/
25
41
class Time extends DateTimeImmutable
Original file line number Diff line number Diff line change 20
20
* This is not immutable! Some methods are immutable,
21
21
* but some methods can alter the state.
22
22
*
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
24
39
*
25
40
* @deprecated Use Time instead.
26
41
* @see \CodeIgniter\I18n\TimeLegacyTest
Original file line number Diff line number Diff line change @@ -1182,6 +1182,8 @@ public function __wakeup(): void
1182
1182
$ timezone = $ this ->timezone ;
1183
1183
1184
1184
$ this ->timezone = new DateTimeZone ($ timezone );
1185
+
1186
+ // @phpstan-ignore-next-line `$this->date` is a special property for PHP internal use.
1185
1187
parent ::__construct ($ this ->date , $ this ->timezone );
1186
1188
}
1187
1189
}
You can’t perform that action at this time.
0 commit comments