Skip to content

Commit 27fb8d1

Browse files
authored
Fix DateTime exception hierarchy for DateInvalidTimeZoneException (#11970)
`DateInvalidTimeZoneException` is supposed to inherit from `DateException`, but the current stub has `Exception`.
1 parent 09e63e4 commit 27fb8d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ext/date/php_date.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ class DateException extends Exception
780780
/**
781781
* @strict-properties
782782
*/
783-
class DateInvalidTimeZoneException extends Exception
783+
class DateInvalidTimeZoneException extends DateException
784784
{
785785
}
786786

ext/date/php_date_arginfo.h

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)