diff options
| author | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:12:55 +0200 |
|---|---|---|
| committer | Peter Kokot <peterkokot@gmail.com> | 2018-10-13 14:12:55 +0200 |
| commit | 7f6387b59ae1b5d642b0d05afbb14cab07061a9a (patch) | |
| tree | d09f6f4674163b6a57d8805408877b05294f6931 /Zend/zend_inheritance.c | |
| parent | 3f72c77ce47ee0906905b83161d9c1d24e425d89 (diff) | |
| download | php-git-7f6387b59ae1b5d642b0d05afbb14cab07061a9a.tar.gz | |
Trim trailing whitespace in source code files
Diffstat (limited to 'Zend/zend_inheritance.c')
| -rw-r--r-- | Zend/zend_inheritance.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 4e7a6b925f..866a8e87cd 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -172,11 +172,11 @@ static zend_always_inline zend_bool zend_iterable_compatibility_check(zend_arg_i if (arg_info->type_hint == IS_ARRAY) { return 1; } - + if (arg_info->class_name && zend_string_equals_literal_ci(arg_info->class_name, "Traversable")) { return 1; } - + return 0; } /* }}} */ @@ -328,7 +328,7 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c } else { proto_arg_info = &proto->common.arg_info[proto->common.num_args]; } - + if (!zend_do_perform_type_hint_check(fe, fe_arg_info, proto, proto_arg_info)) { switch (fe_arg_info->type_hint) { case IS_ITERABLE: @@ -336,7 +336,7 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c return 0; } break; - + default: return 0; } @@ -361,7 +361,7 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c if (!(fe->common.fn_flags & ZEND_ACC_HAS_RETURN_TYPE)) { return 0; } - + if (!zend_do_perform_type_hint_check(fe, fe->common.arg_info - 1, proto, proto->common.arg_info - 1)) { switch (proto->common.arg_info[-1].type_hint) { case IS_ITERABLE: @@ -369,7 +369,7 @@ static zend_bool zend_do_perform_implementation_check(const zend_function *fe, c return 0; } break; - + default: return 0; } |
