• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/task/placeholder/placeholder/crmtestarrayplaceholder.php
  • Класс: BitrixTasksInternalsTaskPlaceholderPlaceholderCrmTestArrayPlaceholder
  • Вызов: CrmTestArrayPlaceholder::validate
protected function validate(): bool
{
	if (!is_array($this->value))
	{
		throw new PlaceholderValidationException(static::class, 'not an array');
	}

	foreach ($this->value as $item)
	{
		if (!is_string($item))
		{
			throw new PlaceholderValidationException(static::class, 'contains an array');
		}
	}

	return true;
}