-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix supertype checks between late resolvable types
- Loading branch information
1 parent
2c49320
commit 958a053
Showing
3 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace Bug7652; | ||
|
||
// @link https://github.com/symfony/symfony/blob/6.2/src/Symfony/Component/OptionsResolver/Options.php | ||
|
||
/** | ||
* @template TArray of array | ||
* @extends \ArrayAccess<key-of<TArray>, value-of<TArray>> | ||
*/ | ||
interface Options extends \ArrayAccess { | ||
|
||
/** | ||
* @param key-of<TArray> $offset | ||
*/ | ||
public function offsetExists(mixed $offset): bool; | ||
|
||
/** | ||
* @template TOffset of key-of<TArray> | ||
* @param TOffset $offset | ||
* @return TArray[TOffset] | ||
*/ | ||
public function offsetGet(mixed $offset); | ||
|
||
/** | ||
* @template TOffset of key-of<TArray> | ||
* @param TOffset $offset | ||
* @param TArray[TOffset] $value | ||
*/ | ||
public function offsetSet(mixed $offset, mixed $value): void; | ||
|
||
/** | ||
* @template TOffset of key-of<TArray> | ||
* @param TOffset $offset | ||
*/ | ||
public function offsetUnset(mixed $offset): void; | ||
|
||
} |