function Assert::classExists
@psalm-assert class-string $value
Parameters
mixed $value:
string $message:
Throws
1 call to Assert::classExists()
- StandardTagFactory::registerTagHandler in vendor/
phpdocumentor/ reflection-docblock/ src/ DocBlock/ StandardTagFactory.php - Registers a handler for tags.
File
-
vendor/
webmozart/ assert/ src/ Assert.php, line 1515
Class
- Assert
- Efficient assertions to validate the input/output of your methods.
Namespace
Webmozart\AssertCode
public static function classExists($value, $message = '') {
if (!\class_exists($value)) {
static::reportInvalidArgument(\sprintf($message ?: 'Expected an existing class name. Got: %s', static::valueToString($value)));
}
}