HEX
Server: LiteSpeed
System: Linux cp4.porkbun.com 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
User: vxblllubpkafjsjw (1110)
PHP: 8.4.19
Disabled: NONE
Upload Files
File: /data0/brighttherapyllc.com/public_html/wp-content/plugins/fluent-smtp/includes/Core/Reflection.php
<?php

namespace FluentMail\Includes\Core;

use ReflectionParameter;
use ReflectionNamedType;

class Reflection
{
    private static function isPhp8OrHigher()
    {
        return PHP_VERSION_ID >= 80000;
    }

    public static function getClassName(ReflectionParameter $parameter)
    {
        if (static::isPhp8OrHigher()) {
            $type = $parameter->getType();
            if ($type instanceof ReflectionNamedType && !$type->isBuiltin()) {
                return $type->getName();
            }

            return null;
        }

        $class = $parameter->getClass();

        return $class ? $class->getName() : null;
    }
}