Skip to content

Commit

Permalink
feat(goffi): adding default case for result resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
razshare committed Mar 6, 2024
1 parent f6f63c7 commit f7e0c04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/Core/GoffiContract.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ private static function loadContract(FFI $lib, string $interface) {
'int' => fn (int $value) => ok($value),
'float' => fn (float $value) => ok($value),
'bool' => fn (bool $value) => ok($value),
default => fn (mixed $value) => ok($value),
};
}

Expand Down

0 comments on commit f7e0c04

Please sign in to comment.