From f4102aa99754410b87d7d2d549914c775c6ab192 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 3 Sep 2015 12:49:32 +0200 Subject: [PATCH] no need for an array_column fallback, because our extensive yield usage already requires 5.5+ --- src/pharext/Cli/Command.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pharext/Cli/Command.php b/src/pharext/Cli/Command.php index bc0afbb..e8d0ee0 100644 --- a/src/pharext/Cli/Command.php +++ b/src/pharext/Cli/Command.php @@ -7,20 +7,6 @@ use pharext\Cli\Args as CliArgs; use Phar; -if (!function_exists("array_column")) { - function array_column(array $array, $col, $idx = null) { - $result = []; - foreach ($array as $el) { - if (isset($idx)) { - $result[$el[$idx]] = $el[$col]; - } else { - $result[] = $el[$col]; - } - } - return $result; - } -} - trait Command { /** -- 2.30.2