ArgumentCountError

(PHP 7 >= PHP 7.1.0, PHP 8)

はじめに

ArgumentCountError は、 ユーザー定義の関数あるいはメソッドに渡された引数が少なすぎる場合にスローされます。

可変長引数でない組み込み関数に、多過ぎる引数を渡した場合にもスローされます。

クラス概要

classArgumentCountErrorextendsTypeError {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicError::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicError::getCode(): int
finalpublicError::getFile(): string
finalpublicError::getLine(): int
finalpublicError::getTrace(): array
}
To Top