From 8af47a3960cf5ce5993b89c5c4eb842a09ee29e4 Mon Sep 17 00:00:00 2001 From: CismonX Date: Sat, 15 Sep 2018 22:42:57 +0800 Subject: [PATCH] Fix bug. --- src/collections_methods.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collections_methods.c b/src/collections_methods.c index 2c78921..16ed64f 100644 --- a/src/collections_methods.c +++ b/src/collections_methods.c @@ -78,7 +78,7 @@ zend_array* elements##_arr; \ if (IS_COLLECTION(*elements)) { \ (elements##_arr) = Z_COLLECTION_P(elements); \ - } else if (UNEXPECTED(Z_TYPE_P(elements) == IS_ARRAY)) { \ + } else if (EXPECTED(Z_TYPE_P(elements) == IS_ARRAY)) { \ (elements##_arr) = Z_ARRVAL_P(elements); \ } else { \ err(); \