AssertionError (PHP 7, PHP 8) 简介 AssertionError 在函数 assert() 断言失败时被抛出。 类摘要 AssertionError extends Error { /* 继承的属性 */ protected string $message; protected int $code; protected string $file; protected int $line; /* 继承的方法 */ final public Error::getMessage(): string final public Error::getPrevious(): Throwable final public Error::getCode(): mixed final public Error::getFile(): string final public Error::getLine(): int final public Error::getTrace(): array final public Error::getTraceAsString(): string public Error::__toString(): string final private Error::__clone(): void } 用户贡献的笔记 There are no user contributed notes for this page. 扫码领个红包作为打赏吧~~(余额宝支付时可抵现) 赏 转载请注明:悠然品鉴 » PHP AssertionError 用法 手册 | 示例代码 喜欢 (0)or分享 (0)