Skip to content

Commit dfe3019

Browse files
stofondrejmirtes
authored andcommitted
Add a more precise return type for date_get_last_errors
1 parent b5a6597 commit dfe3019

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Reflection/SignatureMap/functionMap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@
15431543
'date_default_timezone_set' => ['bool', 'timezone_identifier'=>'string'],
15441544
'date_diff' => ['DateInterval', 'obj1'=>'DateTimeInterface', 'obj2'=>'DateTimeInterface', 'absolute='=>'bool'],
15451545
'date_format' => ['string', 'obj'=>'DateTimeInterface', 'format'=>'string'],
1546-
'date_get_last_errors' => ['array'],
1546+
'date_get_last_errors' => ['array{warning_count: int, warnings: array<int, string>, error_count: int, errors: array<int, string>}'],
15471547
'date_interval_create_from_date_string' => ['DateInterval', 'time'=>'string'],
15481548
'date_interval_format' => ['string', 'object'=>'DateInterval', 'format'=>'string'],
15491549
'date_isodate_set' => ['DateTime|false', 'object'=>'DateTime', 'year'=>'int', 'week'=>'int', 'day='=>'int|mixed'],
@@ -1601,7 +1601,7 @@
16011601
'DateTime::createFromImmutable' => ['static', 'object'=>'DateTimeImmutable'],
16021602
'DateTime::diff' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
16031603
'DateTime::format' => ['string', 'format'=>'string'],
1604-
'DateTime::getLastErrors' => ['array'],
1604+
'DateTime::getLastErrors' => ['array{warning_count: int, warnings: array<int, string>, error_count: int, errors: array<int, string>}'],
16051605
'DateTime::getOffset' => ['int'],
16061606
'DateTime::getTimestamp' => ['int'],
16071607
'DateTime::getTimezone' => ['DateTimeZone'],
@@ -1620,7 +1620,7 @@
16201620
'DateTimeImmutable::createFromMutable' => ['static', 'datetime'=>'DateTime'],
16211621
'DateTimeImmutable::diff' => ['DateInterval', 'datetime2'=>'DateTimeInterface', 'absolute='=>'bool'],
16221622
'DateTimeImmutable::format' => ['string', 'format'=>'string'],
1623-
'DateTimeImmutable::getLastErrors' => ['array'],
1623+
'DateTimeImmutable::getLastErrors' => ['array{warning_count: int, warnings: array<int, string>, error_count: int, errors: array<int, string>}'],
16241624
'DateTimeImmutable::getOffset' => ['int'],
16251625
'DateTimeImmutable::getTimestamp' => ['int'],
16261626
'DateTimeImmutable::getTimezone' => ['DateTimeZone'],

0 commit comments

Comments
 (0)