mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +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{
|
private function checkLineIndex($index) : void{
|
||||||
if(!is_int($index)){
|
if(!is_int($index)){
|
||||||
throw new \InvalidArgumentException("Index must be an integer");
|
throw new \InvalidArgumentException("Index must be an integer");
|
||||||
|
Reference in New Issue
Block a user