Upgrade codeception and lucatume/wp-browser and minor deps versions

[MAILPOET-1713]
This commit is contained in:
Rostislav Wolny
2019-01-03 11:03:06 +01:00
parent 2658a32e37
commit d76d5d2675
3 changed files with 416 additions and 332 deletions

View File

@ -26,11 +26,11 @@
"require-dev": {
"codeception/aspect-mock": "2.0.1",
"goaop/framework": "2.1.2",
"codeception/codeception": "2.4.2",
"codeception/codeception": "2.5.2",
"codeception/verify": "^0.4.0",
"consolidation/robo": "^1.3.0",
"henrikbjorn/lurker": "^1.2",
"lucatume/wp-browser": "1.24.5",
"lucatume/wp-browser": "2.2.0",
"phpunit/phpunit": "5.7.27",
"vlucas/phpdotenv": "^2.4.0",
"umpirsky/twig-gettext-extractor": "1.1.*",

739
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -8,11 +8,12 @@ namespace MailPoet\Util;
* @author Ben Ramsey (http://benramsey.com)
*/
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'))) {
return \array_column($input, $column_key, $index_key);
}
$argc = func_num_args();
$params = func_get_args();
if($argc < 2) {
trigger_error("array_column() expects at least 2 parameters, {$argc} given", E_USER_WARNING);
return null;