Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ppelisset committed Aug 12, 2022
1 parent b612b8e commit c5b709a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ioctl.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/IoctlFunctions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c5b709a

Please sign in to comment.