We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7814246 commit 3a7e6f1Copy full SHA for 3a7e6f1
src/Pictory/IO.php
@@ -31,14 +31,12 @@ public static function fromPictory(array $definition): self
31
32
$io->unit = match ($definition[2]) {
33
'1' => 'bool',
34
- 'default' => 'int',
35
- default => null,
+ default => 'int',
36
};
37
38
$io->default = match ($io->unit) {
39
'bool' => (bool) ($definition[1]),
40
- 'int' => (int) $definition[1],
41
+ default => (int) $definition[1],
42
43
44
$io->exported = (bool) $definition[4];
0 commit comments