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 @@ -773,7 +773,7 @@ PHP_FUNCTION(count)
773
773
774
774
switch (Z_TYPE_P (array )) {
775
775
case IS_NULL :
776
- php_error_docref (NULL , E_WARNING , "Parameter must be an array or an object that implements Countable" );
776
+ zend_type_error (NULL , "Parameter must be an array or an object that implements Countable" );
777
777
RETURN_LONG (0 );
778
778
break ;
779
779
case IS_ARRAY :
@@ -804,12 +804,12 @@ PHP_FUNCTION(count)
804
804
}
805
805
806
806
/* If There's no handler and it doesn't implement Countable then add a warning */
807
- php_error_docref (NULL , E_WARNING , "Parameter must be an array or an object that implements Countable" );
807
+ zend_type_error (NULL , "Parameter must be an array or an object that implements Countable" );
808
808
RETURN_LONG (1 );
809
809
break ;
810
810
}
811
811
default :
812
- php_error_docref (NULL , E_WARNING , "Parameter must be an array or an object that implements Countable" );
812
+ zend_type_error (NULL , "Parameter must be an array or an object that implements Countable" );
813
813
RETURN_LONG (1 );
814
814
break ;
815
815
}
You can’t perform that action at this time.
0 commit comments