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 )
114
114
}
115
115
RETURN_THROWS ();
116
116
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" );
118
118
RETURN_THROWS ();
119
119
}
120
120
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ PHP_FUNCTION( numfmt_parse )
96
96
}
97
97
goto cleanup ;
98
98
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" );
100
100
goto cleanup ;
101
101
}
102
102
You can’t perform that action at this time.
0 commit comments