ArgumentCountError

(PHP 7 >= PHP 7.1.0, PHP 8)

Giriş

Kullanıcı tanımlı bir işlev veya yönteme gerekenden az bağımsız değişken aktarıldığında ArgumentCountError yavrulanır.

Bu hata ayrıca bağımsız değişken sayısı değişken olmayan yerleşik bir işleve çok fazla bağımsız değişken aktarıldığında da oluşur.

Sınıf Sözdizimi

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