Upgrade codeception and lucatume/wp-browser and minor deps versions
[MAILPOET-1713]
This commit is contained in:
@ -26,11 +26,11 @@
|
|||||||
"require-dev": {
|
"require-dev": {
|
||||||
"codeception/aspect-mock": "2.0.1",
|
"codeception/aspect-mock": "2.0.1",
|
||||||
"goaop/framework": "2.1.2",
|
"goaop/framework": "2.1.2",
|
||||||
"codeception/codeception": "2.4.2",
|
"codeception/codeception": "2.5.2",
|
||||||
"codeception/verify": "^0.4.0",
|
"codeception/verify": "^0.4.0",
|
||||||
"consolidation/robo": "^1.3.0",
|
"consolidation/robo": "^1.3.0",
|
||||||
"henrikbjorn/lurker": "^1.2",
|
"henrikbjorn/lurker": "^1.2",
|
||||||
"lucatume/wp-browser": "1.24.5",
|
"lucatume/wp-browser": "2.2.0",
|
||||||
"phpunit/phpunit": "5.7.27",
|
"phpunit/phpunit": "5.7.27",
|
||||||
"vlucas/phpdotenv": "^2.4.0",
|
"vlucas/phpdotenv": "^2.4.0",
|
||||||
"umpirsky/twig-gettext-extractor": "1.1.*",
|
"umpirsky/twig-gettext-extractor": "1.1.*",
|
||||||
|
739
composer.lock
generated
739
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@ -8,11 +8,12 @@ namespace MailPoet\Util;
|
|||||||
* @author Ben Ramsey (http://benramsey.com)
|
* @author Ben Ramsey (http://benramsey.com)
|
||||||
*/
|
*/
|
||||||
function array_column($input = null, $column_key = null, $index_key = null) {
|
function array_column($input = null, $column_key = null, $index_key = null) {
|
||||||
|
$argc = func_num_args();
|
||||||
|
$params = func_get_args();
|
||||||
|
|
||||||
if(!empty(\array_column([['id' => '4']], 'id'))) {
|
if(!empty(\array_column([['id' => '4']], 'id'))) {
|
||||||
return \array_column($input, $column_key, $index_key);
|
return \array_column($input, $column_key, $index_key);
|
||||||
}
|
}
|
||||||
$argc = func_num_args();
|
|
||||||
$params = func_get_args();
|
|
||||||
if($argc < 2) {
|
if($argc < 2) {
|
||||||
trigger_error("array_column() expects at least 2 parameters, {$argc} given", E_USER_WARNING);
|
trigger_error("array_column() expects at least 2 parameters, {$argc} given", E_USER_WARNING);
|
||||||
return null;
|
return null;
|
||||||
|
Reference in New Issue
Block a user