Skip to content

Commit 40bc3ea

Browse files
authored
Fix link to true and false types (#197)
1 parent b7d8f52 commit 40bc3ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

phpdotnet/phd/Package/PHP/XHTML.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public function format_type_text($type, $tagname) {
693693
break;
694694
case "false":
695695
case "true":
696-
$href = "language.types.value";
696+
$href = "language.types.singleton";
697697
break;
698698
case "null":
699699
if ($this->simple_nullable) {

tests/package/php/type_rendering_001.phpt

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Content:
4646

4747
<div class="section">
4848
<p class="para">%d. Function/method with union return type</p>
49-
<div class="methodsynopsis dc-description"><span class="methodname"><strong>function_name</strong></span>(): <span class="type"><span class="type"><a href="language.types.integer.html" class="type int">int</a></span>|<span class="type"><a href="language.types.float.html" class="type float">float</a></span>|<span class="type"><a href="language.types.value.html" class="type false">false</a></span></span></div>
49+
<div class="methodsynopsis dc-description"><span class="methodname"><strong>function_name</strong></span>(): <span class="type"><span class="type"><a href="language.types.integer.html" class="type int">int</a></span>|<span class="type"><a href="language.types.float.html" class="type float">float</a></span>|<span class="type"><a href="language.types.singleton.html" class="type false">false</a></span></span></div>
5050

5151
</div>
5252

@@ -58,7 +58,7 @@ Content:
5858

5959
<div class="section">
6060
<p class="para">%d. Function/method with nullable union return type</p>
61-
<div class="methodsynopsis dc-description"><span class="methodname"><strong>function_name</strong></span>(): <span class="type"><span class="type"><a href="language.types.string.html" class="type string">string</a></span>|<span class="type"><a href="language.types.array.html" class="type array">array</a></span>|<span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>|<span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>|<span class="type"><a href="language.types.iterable.html" class="type iterable">iterable</a></span>|<span class="type"><a href="language.types.value.html" class="type true">true</a></span>|<span class="type"><a href="language.types.null.html" class="type null">null</a></span></span></div>
61+
<div class="methodsynopsis dc-description"><span class="methodname"><strong>function_name</strong></span>(): <span class="type"><span class="type"><a href="language.types.string.html" class="type string">string</a></span>|<span class="type"><a href="language.types.array.html" class="type array">array</a></span>|<span class="type"><a href="language.types.resource.html" class="type resource">resource</a></span>|<span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>|<span class="type"><a href="language.types.iterable.html" class="type iterable">iterable</a></span>|<span class="type"><a href="language.types.singleton.html" class="type true">true</a></span>|<span class="type"><a href="language.types.null.html" class="type null">null</a></span></span></div>
6262

6363
</div>
6464

0 commit comments

Comments
 (0)