- Affected version
 - 2.5.0Beta5
 
The example;
	
	
	
		
This really should be;
	
	
	
		
Appending to an array is much safer for compatibility than blindly setting it, especially if this is used to extend existing content types!
				
			
		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 $usageAnalyzer
): void
{
    $steps['my_content_type'][] = function (?int $lastOffset, float $maxRunTime) use ($usageAnalyzer): ?int
        {
            // your icon usage analyzer logic
            return null;
        };
}
	Appending to an array is much safer for compatibility than blindly setting it, especially if this is used to extend existing content types!