Skip to content

Commit

Permalink
Simplify example
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk authored and ondrejmirtes committed May 6, 2024
1 parent c14a695 commit 41394d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions website/src/_posts/generics-by-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ class Container
];

/**
* @template M of self::TYPES
* @template T of key-of<M>
* @template T of key-of<self::TYPES>
* @param T $type
*
* @return new<M[T]>
* @return new<self::TYPES[T]>
*/
public static function get(string $type) : object
{
Expand Down

0 comments on commit 41394d8

Please sign in to comment.