From: Michael Wallner Date: Thu, 3 Sep 2015 10:49:32 +0000 (+0200) Subject: no need for an array_column fallback, because our extensive yield usage alread... X-Git-Tag: v4.1.0~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=f4102aa99754410b87d7d2d549914c775c6ab192;p=pharext%2Fpharext no need for an array_column fallback, because our extensive yield usage already requires 5.5+ --- 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 { /**