Skip to content

Commit a3b285e

Browse files
committed
Fix GCC warning
1 parent 81673b4 commit a3b285e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/intl/formatter/formatter_format.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ PHP_FUNCTION( numfmt_format )
114114
}
115115
RETURN_THROWS();
116116
default:
117-
zend_argument_value_error(getThis() ? 2 : 3, "must be a NumberFormatter::TYPE_* constant");
117+
zend_argument_value_error(ZEND_IS_METHOD_CALL() ? 2 : 3, "must be a NumberFormatter::TYPE_* constant");
118118
RETURN_THROWS();
119119
}
120120

ext/intl/formatter/formatter_parse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ PHP_FUNCTION( numfmt_parse )
9696
}
9797
goto cleanup;
9898
default:
99-
zend_argument_value_error(getThis() ? 2 : 3, "must be a NumberFormatter::TYPE_* constant");
99+
zend_argument_value_error(ZEND_IS_METHOD_CALL() ? 2 : 3, "must be a NumberFormatter::TYPE_* constant");
100100
goto cleanup;
101101
}
102102

0 commit comments

Comments
 (0)