From 00fa43128b2183ddc63549378fa11d302d595e26 Mon Sep 17 00:00:00 2001 From: elazar Date: Thu, 26 Sep 2024 18:24:04 -0500 Subject: [PATCH 1/3] Fix broken PHPDoc Types link on "Typing in Psalm" doc page --- docs/annotating_code/typing_in_psalm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/annotating_code/typing_in_psalm.md b/docs/annotating_code/typing_in_psalm.md index 4bb827f6696..16ea466b6b7 100644 --- a/docs/annotating_code/typing_in_psalm.md +++ b/docs/annotating_code/typing_in_psalm.md @@ -10,7 +10,7 @@ Psalm allows you to express a lot of complicated type information in docblocks. All docblock types are either [atomic types](type_syntax/atomic_types.md), [union types](type_syntax/union_types.md) or [intersection types](type_syntax/intersection_types.md). -Additionally, Psalm supports PHPDoc’s [type syntax](https://docs.phpdoc.org/latest/guide/guides/types.html), and also the [proposed PHPDoc PSR type syntax](https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types). +Additionally, Psalm supports PHPDoc’s [type syntax](https://docs.phpdoc.org/guide/guides/types.html#supported-types), and also the [proposed PHPDoc PSR type syntax](https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types). ## Property declaration types vs Assignment typehints From 7b0e2a7197e657cfabb317340c88163b89c1076b Mon Sep 17 00:00:00 2001 From: elazar Date: Thu, 26 Sep 2024 18:24:31 -0500 Subject: [PATCH 2/3] Fix broken PHPDoc Types link on "Supported Annotations" doc page --- docs/annotating_code/supported_annotations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/annotating_code/supported_annotations.md b/docs/annotating_code/supported_annotations.md index 070f3ddd682..93205e72202 100644 --- a/docs/annotating_code/supported_annotations.md +++ b/docs/annotating_code/supported_annotations.md @@ -755,6 +755,6 @@ class BazClass extends BaseClass {} // this is an error ## Type Syntax -Psalm supports PHPDoc’s [type syntax](https://docs.phpdoc.org/latest/guide/guides/types.html), and also the [proposed PHPDoc PSR type syntax](https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types). +Psalm supports PHPDoc’s [type syntax](https://docs.phpdoc.org/guide/guides/types.html), and also the [proposed PHPDoc PSR type syntax](https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types). A detailed write-up is found in [Typing in Psalm](typing_in_psalm.md) From 5aa36a2ff6470708fbbbd3e21a4cb8764e30d3b2 Mon Sep 17 00:00:00 2001 From: elazar Date: Thu, 26 Sep 2024 18:24:46 -0500 Subject: [PATCH 3/3] Fix broken PHPDoc Types link on "Array Types" doc page --- docs/annotating_code/type_syntax/array_types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/annotating_code/type_syntax/array_types.md b/docs/annotating_code/type_syntax/array_types.md index 1021ab1fcab..e4fbcbac8b6 100644 --- a/docs/annotating_code/type_syntax/array_types.md +++ b/docs/annotating_code/type_syntax/array_types.md @@ -40,7 +40,7 @@ You can also specify that an array is non-empty with the special type `non-empty ### PHPDoc syntax -PHPDoc [allows you to specify](https://docs.phpdoc.org/latest/guide/references/phpdoc/types.html#arrays) the type of values a generic array holds with the annotation: +PHPDoc [allows you to specify](https://docs.phpdoc.org/guide/guides/types.html#arrays) the type of values a generic array holds with the annotation: ```php /** @return ValueType[] */