function Assert::methodNotExists
@psalm-pure @psalm-param class-string|object $classOrObject
Parameters
string|object $classOrObject:
mixed $method:
string $message:
Throws
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 1659
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function methodNotExists($classOrObject, $method, $message = '') {
if ((\is_string($classOrObject) || \is_object($classOrObject)) && \method_exists($classOrObject, $method)) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected the method %s to not exist.', static::valueToString($method)));
}
}