<?php

declare(strict_types=1);

namespace ShieldX\Support;

defined('ABSPATH') || exit;

final class ErrorLog
{
    public static function write(string $message): void
    {
        if ($message === '' || !function_exists('error_log')) {
            return;
        }

        // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- SHIELD-X centralizes guarded operational diagnostics here so production code avoids scattered direct error_log() calls.
        error_log($message);
    }
}
