Update code for PHP 5.5

[MAILPOET-1496]
This commit is contained in:
Pavel Dohnal
2018-08-23 11:25:52 +02:00
parent 44d4613ef4
commit ae0e03d2f3
14 changed files with 23 additions and 96 deletions

View File

@ -31,12 +31,12 @@ class Export {
}
$this->default_subscribers_getter = new DefaultSubscribersGetter(
$data['segments'],
$data['segments'],
self::SUBSCRIBER_BATCH_SIZE
);
$this->dynamic_subscribers_getter = new DynamicSubscribersGetter(
$data['segments'],
$data['segments'],
self::SUBSCRIBER_BATCH_SIZE
);
@ -192,7 +192,7 @@ class Export {
}
function getSubscriberCustomFields() {
return Helpers::arrayColumn(
return array_column(
CustomField::findArray(),
'name',
'id'