Bad example for icon_usage_analyzer_steps code event listener

The example;
PHP:

Код:
public static function iconUsageAnalyzerSteps(
    array &$steps,
    \XF\Service\Icon\UsageAnalyzer $usageAnalyzer
): void
{
    $steps['my_content_type'] = [
        function (?int $lastOffset, float $maxRunTime) use ($usageAnalyzer): ?int
        {
            // your icon usage analyzer logic
            return null;
        },
    ];
}

This really should be;

PHP:

Код:
public static function iconUsageAnalyzerSteps(
    array &$steps,
    \XF\Service\Icon\UsageAnalyzer...

Read more

Читать далее...
 
Активность
Пока что здесь никого нет
Назад
Верх Низ