File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -813,7 +813,7 @@ ZEND_API inheritance_status zend_perform_covariant_type_check(
813813
814814static inheritance_status zend_do_perform_arg_type_hint_check (
815815 zend_class_entry * fe_scope , const zend_arg_info * fe_arg_info ,
816- zend_class_entry * proto_scope , zend_arg_info * proto_arg_info ) /* {{{ */
816+ zend_class_entry * proto_scope , const zend_arg_info * proto_arg_info ) /* {{{ */
817817{
818818 if (!ZEND_TYPE_IS_SET (fe_arg_info -> type ) || ZEND_TYPE_PURE_MASK (fe_arg_info -> type ) == MAY_BE_ANY ) {
819819 /* Child with no type or mixed type is always compatible */
@@ -881,10 +881,10 @@ static inheritance_status zend_do_perform_implementation_check(
881881
882882 status = INHERITANCE_SUCCESS ;
883883 for (uint32_t i = 0 ; i < num_args ; i ++ ) {
884- zend_arg_info * proto_arg_info =
884+ const zend_arg_info * proto_arg_info =
885885 i < proto_num_args ? & proto -> common .arg_info [i ] :
886886 proto_is_variadic ? & proto -> common .arg_info [proto_num_args - 1 ] : NULL ;
887- zend_arg_info * fe_arg_info =
887+ const zend_arg_info * fe_arg_info =
888888 i < fe_num_args ? & fe -> common .arg_info [i ] :
889889 fe_is_variadic ? & fe -> common .arg_info [fe_num_args - 1 ] : NULL ;
890890 if (!proto_arg_info ) {
You can’t perform that action at this time.
0 commit comments