public static function serializeAdvice(Closure $adviceMethod): array
    {
        $refAdvice = new ReflectionFunction($adviceMethod);

        return [
            'method' => $refAdvice->name,
            'class'  => $refAdvice->getClosureScopeClass()->name
        ];
    }
public static function serializeAdvice(Closure $adviceMethod): array
    {
        $refAdvice = new ReflectionFunction($adviceMethod);

        return [
            'method' => $refAdvice->name,
            'class'  => $refAdvice->getClosureScopeClass()->name
        ];
    }
public static function serializeAdvice ( Closure $ adviceMethod ) : array { $ refAdvice = new ReflectionFunction ( $ adviceMethod ) ; return [ 'method' => $ refAdvice -> name , 'class' => $ refAdvice -> getClosureScopeClass ( ) -> name ] ; }
Serialize advice method into array
Serialize advice method into array