Skip to content

Commit

Permalink
Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
phpstan-bot committed Sep 27, 2024
1 parent 66ae33a commit e33a7dc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions stubs/ext/ffi/FFI.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,14 @@ public static function load(string $filename): ?FFI
public static function scope(string $name): FFI
{
}
#[\Until('8.4')]
public static function new(FFI\CType|string $type, bool $owned = true, bool $persistent = false): ?FFI\CData
{
}
#[\Since('8.4')]
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 @@ -30,12 +35,26 @@ public static function free(FFI\CData $ptr): void
* @param FFI\CData|int|float|bool|null $ptr
* @prefer-ref $ptr
*/
#[\Until('8.4')]
public static function cast(FFI\CType|string $type, $ptr): ?FFI\CData
{
}
/**
* @param FFI\CData|int|float|bool|null $ptr
* @prefer-ref $ptr
*/
#[\Since('8.4')]
public static function cast(FFI\CType|string $type, $ptr): FFI\CData
{
}
#[\Until('8.4')]
public static function type(string $type): ?FFI\CType
{
}
#[\Since('8.4')]
public static function type(string $type): FFI\CType
{
}
/** @prefer-ref $ptr */
public static function typeof(FFI\CData $ptr): FFI\CType
{
Expand Down

0 comments on commit e33a7dc

Please sign in to comment.