* Fix error for defined param.

This commit is contained in:
caoyanyi
2023-09-18 15:27:40 +08:00
parent a2fded3f1f
commit 23e65c0662
+1 -1
View File
@@ -929,7 +929,7 @@ class baseHelper
public static function arrayColumn(array $input, $columnKey, $indexKey = null): array
{
/* If php version greater than 7, calling system functions returns. */
if(defined(PHP_VERSION_ID) && PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey);
if(defined('PHP_VERSION_ID') && PHP_VERSION_ID >= 70000) return \array_column($input, $columnKey, $indexKey);
$output = array();
foreach($input as $row)