diff --git a/website/src/_posts/generics-by-examples.md b/website/src/_posts/generics-by-examples.md index 82118720cf..ac68534071 100644 --- a/website/src/_posts/generics-by-examples.md +++ b/website/src/_posts/generics-by-examples.md @@ -316,3 +316,16 @@ class Bar use Part; } ``` + +The `@use` tag can be defined into the PHPDoc above the `class` or the `use` clause. Both work the same way: + +```php +/** + * @template T of Foo + * @use Part + */ +class Bar +{ + use Part; +} +```