mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 01:16:15 +00:00
SignText: provide typeinfo for checkLineIndex
This commit is contained in:
@ -86,6 +86,9 @@ class SignText{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|string $index
|
||||
*/
|
||||
private function checkLineIndex($index) : void{
|
||||
if(!is_int($index)){
|
||||
throw new \InvalidArgumentException("Index must be an integer");
|
||||
|
Reference in New Issue
Block a user