Skip to content

Commit d08d34b

Browse files
committed
Improve documentation
1 parent b9f00e6 commit d08d34b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/supported-types/arrays-and-shapes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ processMatrix([
133133

134134
TypePHP validates generic container objects nested inside arrays or array shapes:
135135

136-
> **Deep Dive Guide:** For comprehensive details on generic collections and variance modifiers (`covariant`/`contravariant`), see the [Generics & Bounds](/generics/generics-and-bounds) documentation.
136+
> **Deep Dive Guide:** For comprehensive details on generic collections and variance modifiers (`covariant`/`contravariant`), see the [Generics Basics & Bounds](/generics/basics-and-bounds) documentation.
137137
138138
```php
139139
use App\Generics\Producer;

docs/supported-types/callables-and-closures.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function badInvoker(callable $callback): bool
5757

5858
When a function uses generic template parameters (`@template T`), TypePHP dynamically substitutes `T` into the callable's parameter and return types based on the bound generic type:
5959

60-
> **Deep Dive Guide:** For full details on generic templates, reified type inspection, and class bounds, see the dedicated [Generics & Bounds](/generics/generics-and-bounds) guide.
60+
> **Deep Dive Guide:** For full details on generic templates, reified type inspection, and class bounds, see the dedicated [Generics Basics & Bounds](/generics/basics-and-bounds) guide.
6161
6262
```php
6363
/**
@@ -147,7 +147,7 @@ executeComplexCallback(function (Producer $producer, array $ids): array {
147147
// Throws: TypeError: Callback $processor return value['count'] must be of type positive-int, negative int (-5) given
148148
```
149149

150-
> **Generics & Variance in Callables:** Need to enforce covariance (`Producer<covariant Animal>`) or contravariance (`Consumer<contravariant Dog>`) within callback arguments? See [Demystifying Variance in Generics](/generics/generics-and-bounds#demystifying-variance-covariant-contravariant-invariant).
150+
> **Generics & Variance in Callables:** Need to enforce covariance (`Producer<covariant Animal>`) or contravariance (`Consumer<contravariant Dog>`) within callback arguments? See [Demystifying Variance in Generics](/generics/variance).
151151
152152
---
153153

docs/supported-types/iterators-and-generators.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ processTraversable($badKeyIterator);
107107

108108
When a function accepts generic iterables (`iterable<T>` or `Traversable<string, T>`), TypePHP dynamically substitutes `T` with the bound generic type and lazily validates items during iteration:
109109

110-
> **Deep Dive Guide:** For comprehensive details on template bounds, covariance/contravariance, and runtime generic state inspection, see the [Generics & Bounds](/generics/generics-and-bounds) documentation.
110+
> **Deep Dive Guide:** For comprehensive details on template bounds, covariance/contravariance, and runtime generic state inspection, see the [Generics Basics & Bounds](/generics/basics-and-bounds) documentation.
111111
112112
```php
113113
use App\Models\Animal;

0 commit comments

Comments
 (0)