From f7e0c04fb45b46c1ff6b570aac73c2ed241a1f44 Mon Sep 17 00:00:00 2001 From: Razvan Date: Thu, 7 Mar 2024 00:15:51 +0100 Subject: [PATCH] feat(goffi): adding default case for result resolvers --- src/lib/Core/GoffiContract.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Core/GoffiContract.php b/src/lib/Core/GoffiContract.php index b47f7aa6..a3c7cc83 100644 --- a/src/lib/Core/GoffiContract.php +++ b/src/lib/Core/GoffiContract.php @@ -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), }; }