File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments