File tree 1 file changed +6
-18
lines changed
1 file changed +6
-18
lines changed Original file line number Diff line number Diff line change @@ -4185,16 +4185,10 @@ ZEND_METHOD(reflection_class, getMethods)
4185
4185
{
4186
4186
reflection_object * intern ;
4187
4187
zend_class_entry * ce ;
4188
- zend_long filter = 0 ;
4189
- int argc = ZEND_NUM_ARGS ();
4188
+ zend_long filter = ZEND_ACC_PPP_MASK | ZEND_ACC_ABSTRACT | ZEND_ACC_FINAL | ZEND_ACC_STATIC ;
4190
4189
4191
- if (argc ) {
4192
- if (zend_parse_parameters (argc , "|l" , & filter ) == FAILURE ) {
4193
- return ;
4194
- }
4195
- } else {
4196
- /* No parameters given, default to "return all" */
4197
- filter = ZEND_ACC_PPP_MASK | ZEND_ACC_ABSTRACT | ZEND_ACC_FINAL | ZEND_ACC_STATIC ;
4190
+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "|l" , & filter ) == FAILURE ) {
4191
+ return ;
4198
4192
}
4199
4193
4200
4194
GET_REFLECTION_OBJECT_PTR (ce );
@@ -4377,16 +4371,10 @@ ZEND_METHOD(reflection_class, getProperties)
4377
4371
{
4378
4372
reflection_object * intern ;
4379
4373
zend_class_entry * ce ;
4380
- zend_long filter = 0 ;
4381
- int argc = ZEND_NUM_ARGS ();
4374
+ zend_long filter = ZEND_ACC_PPP_MASK | ZEND_ACC_STATIC ;
4382
4375
4383
- if (argc ) {
4384
- if (zend_parse_parameters (argc , "|l" , & filter ) == FAILURE ) {
4385
- return ;
4386
- }
4387
- } else {
4388
- /* No parameters given, default to "return all" */
4389
- filter = ZEND_ACC_PPP_MASK | ZEND_ACC_STATIC ;
4376
+ if (zend_parse_parameters (ZEND_NUM_ARGS (), "|l" , & filter ) == FAILURE ) {
4377
+ return ;
4390
4378
}
4391
4379
4392
4380
GET_REFLECTION_OBJECT_PTR (ce );
You can’t perform that action at this time.
0 commit comments