Skip to content

Commit

Permalink
Merge branch 'PHP-8.4'
Browse files Browse the repository at this point in the history
* PHP-8.4:
  Fix FFI prototypes (these functions can't return NULL) (#16075)
  • Loading branch information
dstogov committed Sep 26, 2024
2 parents 5e83586 + a37a3d3 commit c34b37f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ext/ffi/ffi.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static function load(string $filename): ?FFI {}

public static function scope(string $name): FFI {}

public static function new(FFI\CType|string $type, bool $owned = true, bool $persistent = false): ?FFI\CData {}
public static function new(FFI\CType|string $type, bool $owned = true, bool $persistent = false): FFI\CData {}

/** @prefer-ref $ptr */
public static function free(FFI\CData $ptr): void {}
Expand All @@ -24,9 +24,9 @@ public static function free(FFI\CData $ptr): void {}
* @param FFI\CData|int|float|bool|null $ptr
* @prefer-ref $ptr
*/
public static function cast(FFI\CType|string $type, $ptr): ?FFI\CData {}
public static function cast(FFI\CType|string $type, $ptr): FFI\CData {}

public static function type(string $type): ?FFI\CType {}
public static function type(string $type): FFI\CType {}

/** @prefer-ref $ptr */
public static function typeof(FFI\CData $ptr): FFI\CType {}
Expand Down
8 changes: 4 additions & 4 deletions ext/ffi/ffi_arginfo.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c34b37f

Please sign in to comment.