Apply union types in some places (BC breaks)

This commit is contained in:
Dylan K. Taylor
2022-11-23 14:03:35 +00:00
parent 23ae0c7cac
commit 3b6ff3c42b
13 changed files with 30 additions and 83 deletions

View File

@ -87,10 +87,7 @@ class SignText{
return $this->lines;
}
/**
* @param int|string $index
*/
private function checkLineIndex($index) : void{
private function checkLineIndex(int|string $index) : void{
if(!is_int($index)){
throw new \InvalidArgumentException("Index must be an integer");
}