Skip to content

Commit

Permalink
Fix stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Oct 7, 2024
1 parent bb19be5 commit 544101b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions stubs/ReflectionClass.stub
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
class ReflectionClass
{

/**
* @readonly
* @var class-string<T>
*/
public $name;

/**
* @param T|class-string<T> $argument
* @throws ReflectionException
Expand Down
14 changes: 12 additions & 2 deletions stubs/ext-ds.stub
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,21 @@ final class Map implements Collection, ArrayAccess
}

/**
* @template-covariant TKey
* @template-covariant TValue
* @template TKey
* @template TValue
*/
final class Pair implements JsonSerializable
{
/**
* @var TKey
*/
public $key;

/**
* @var TValue
*/
public $value;

/**
* @param TKey $key
* @param TValue $value
Expand Down

0 comments on commit 544101b

Please sign in to comment.