Skip to content

Commit 94abf2c

Browse files
committed
Add TODO Comment
1 parent b88b300 commit 94abf2c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/spl/spl_array.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,7 @@ static void spl_array_it_rewind(zend_object_iterator *iter) /* {{{ */
10821082
/* {{{ spl_array_set_array */
10831083
static void spl_array_set_array(zval *object, spl_array_object *intern, zval *array, zend_long ar_flags, int just_array) {
10841084
if (Z_TYPE_P(array) != IS_OBJECT && Z_TYPE_P(array) != IS_ARRAY) {
1085+
// TODO Type Error?
10851086
zend_throw_exception(spl_ce_InvalidArgumentException, "Passed variable is not an array or object", 0);
10861087
return;
10871088
}

0 commit comments

Comments
 (0)