Skip to content

Commit 4dd0321

Browse files
committed
Fix iOS parsing issue where the next token may not exist.
1 parent bf46682 commit 4dd0321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mappings/platforms.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public static function get() : array {
195195
'type' => 'human',
196196
'category' => 'mobile',
197197
'platform' => 'iOS',
198-
'platformversion' => $tokens[$i+1]
198+
'platformversion' => $tokens[$i+1] ?? null
199199
]),
200200
'CrOS' => new props('start', function (string $value) : array {
201201
$parts = \explode(' ', $value);

0 commit comments

Comments
 (0)