diff --git a/src/Ioctl.php b/src/Ioctl.php index 2524c78..16b5107 100644 --- a/src/Ioctl.php +++ b/src/Ioctl.php @@ -22,7 +22,7 @@ public static function attr(mixed $attribute, mixed $defaultValue): mixed return self::has($attribute) ? $attribute : $defaultValue; } - public static function ioctl(int $fd, int $request, mixed ...$values): Ioctl + public static function ioctl(int $fd, int $request, mixed ...$values): mixed { return IoctlFunctions::ioctl($fd, $request, ...$values); } diff --git a/src/IoctlFunctions.php b/src/IoctlFunctions.php index 51d2cf8..9427705 100644 --- a/src/IoctlFunctions.php +++ b/src/IoctlFunctions.php @@ -6,7 +6,7 @@ final class IoctlFunctions { - private static FFI $ffi; + private static ?FFI $ffi = null; public static function ioctl(int $fd, int $request, mixed ...$values) {