mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
SignText: provide typeinfo for checkLineIndex
This commit is contained in:
parent
9c06c1a06f
commit
eba246eab3
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user