mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 03:44:36 +02:00
Added declare strict types to all files
This commit is contained in:
parent
bea90a7d94
commit
6a2ff9d153
196 changed files with 685 additions and 360 deletions
|
@ -71,7 +71,7 @@ class RangeParser
|
|||
$ranges[] = $this->generateMinMaxRange($matches[1], $matches[2]);
|
||||
} elseif (is_numeric($number)) {
|
||||
$ranges[] = [(int) $number];
|
||||
} elseif (empty($number)) { //Allow empty tokens
|
||||
} elseif ($number === '') { //Allow empty tokens
|
||||
continue;
|
||||
} else {
|
||||
throw new InvalidArgumentException('Invalid range encoutered: '.$number);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue