Код: Выделить всё
$email_actions = 0;
array_walk(
$steps,
fn($step): int => !empty($step['settings']['type']) &&
$step['settings']['type'] === self::FLOWS_EMAIL_TYPE_ACTION
? $email_actions++
: false
);
dd($email_actions);
Код: Выделить всё
fn($step, &$email_actions)Подробнее здесь: https://stackoverflow.com/questions/737 ... w-function
Мобильная версия