diff --git a/ext/intl/formatter/formatter_class.cpp b/ext/intl/formatter/formatter_class.cpp index 5b82b53c6d62..29817132acac 100644 --- a/ext/intl/formatter/formatter_class.cpp +++ b/ext/intl/formatter/formatter_class.cpp @@ -71,7 +71,7 @@ U_CFUNC zend_object *NumberFormatter_object_clone(zend_object *object) /* clone formatter object. It may fail, the destruction code must handle this case */ if (FORMATTER_OBJECT(nfo) != nullptr) { - FORMATTER_OBJECT(new_nfo) = FORMATTER_OBJECT(nfo)->clone(); + FORMATTER_OBJECT(new_nfo) = static_cast(FORMATTER_OBJECT(nfo)->clone()); if (FORMATTER_OBJECT(new_nfo) == nullptr) { zend_throw_error(NULL, "Failed to clone NumberFormatter"); } diff --git a/ext/intl/rangeformatter/rangeformatter_class.h b/ext/intl/rangeformatter/rangeformatter_class.h index 494a6d09a05f..4b6f02dc93c9 100644 --- a/ext/intl/rangeformatter/rangeformatter_class.h +++ b/ext/intl/rangeformatter/rangeformatter_class.h @@ -15,9 +15,8 @@ #ifndef RANGEFORMATTER_CLASS_H #define RANGEFORMATTER_CLASS_H -#include - #ifdef __cplusplus +#include using icu::number::LocalizedNumberRangeFormatter; #else typedef void LocalizedNumberRangeFormatter;