summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-04-14 14:51:29 +0200
committerAndrey Andreev <narf@devilix.net>2015-04-14 14:51:29 +0200
commitaaca76cf4d9ea66249771b89a84c1bd436296b07 (patch)
tree9e00c4e0878a573d58c0845b341e7e22d674379b
parent3eea247622f5dc72d44bbd13ae05eb913b7ad24e (diff)
[ci skip] Change Array helpers element(), elements() signatures
Close #3767
-rw-r--r--system/helpers/array_helper.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/helpers/array_helper.php b/system/helpers/array_helper.php
index e07b52bb5..2ce55b9c4 100644
--- a/system/helpers/array_helper.php
+++ b/system/helpers/array_helper.php
@@ -62,7 +62,7 @@ if ( ! function_exists('element'))
* @param mixed
* @return mixed depends on what the array contains
*/
- function element($item, $array, $default = NULL)
+ function element($item, array $array, $default = NULL)
{
return array_key_exists($item, $array) ? $array[$item] : $default;
}
@@ -99,7 +99,7 @@ if ( ! function_exists('elements'))
* @param mixed
* @return mixed depends on what the array contains
*/
- function elements($items, $array, $default = NULL)
+ function elements($items, array $array, $default = NULL)
{
$return = array();