Skip to content

Commit 805326f

Browse files
authored
An uninitialized DateTime is UNEXPECTED (#13492)
1 parent d539c4b commit 805326f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/date/php_date.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ static void date_throw_uninitialized_error(zend_class_entry *ce)
326326
}
327327

328328
#define DATE_CHECK_INITIALIZED(member, ce) \
329-
if (!(member)) { \
329+
if (UNEXPECTED(!member)) { \
330330
date_throw_uninitialized_error(ce); \
331331
RETURN_THROWS(); \
332332
}

0 commit comments

Comments
 (0)