Skip to content

Commit 3a7e6f1

Browse files
committed
Updates
1 parent 7814246 commit 3a7e6f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Pictory/IO.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ public static function fromPictory(array $definition): self
3131

3232
$io->unit = match ($definition[2]) {
3333
'1' => 'bool',
34-
'default' => 'int',
35-
default => null,
34+
default => 'int',
3635
};
3736

3837
$io->default = match ($io->unit) {
3938
'bool' => (bool) ($definition[1]),
40-
'int' => (int) $definition[1],
41-
default => null,
39+
default => (int) $definition[1],
4240
};
4341

4442
$io->exported = (bool) $definition[4];

0 commit comments

Comments
 (0)