mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Declare array|int and object-of-class|int types in stubs
Closes GH-6081 Co-Authored-By: Nikita Popov <nikic@php.net>
This commit is contained in:
parent
1c81a34563
commit
46c0c82a0f
29 changed files with 463 additions and 279 deletions
|
@ -158,7 +158,7 @@ U_CFUNC PHP_FUNCTION(datefmt_format_object)
|
|||
|
||||
zend_class_entry *instance_ce = Z_OBJCE_P(object);
|
||||
if (instanceof_function(instance_ce, Calendar_ce_ptr)) {
|
||||
Calendar *obj_cal = calendar_fetch_native_calendar(object);
|
||||
Calendar *obj_cal = calendar_fetch_native_calendar(Z_OBJ_P(object));
|
||||
if (obj_cal == NULL) {
|
||||
intl_error_set(NULL, U_ILLEGAL_ARGUMENT_ERROR,
|
||||
"datefmt_format_object: bad IntlCalendar instance: "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue