HEX
Server: Apache
System: Linux www 6.18.6-i1-amd #905 SMP Mon Jan 19 08:49:07 CET 2026 x86_64
User: sws1073755998 (1073755998)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/share/php/PhpAmqpLib/Helper/Assert.php
<?php

namespace PhpAmqpLib\Helper;

use InvalidArgumentException;

class Assert
{
    /**
     * @param mixed $argument
     * @throws \InvalidArgumentException
     */
    public static function isCallable($argument)
    {
        if (!is_callable($argument)) {
            throw new InvalidArgumentException(sprintf(
                'Given argument "%s" should be callable. %s type was given.',
                $argument,
                gettype($argument)
            ));
        }
    }
}