Nits to type juggling page

Add links
Remove implicit conversation to array note as this can never happen
This commit is contained in:
George Peter Banyard 2022-06-12 23:09:18 +01:00
parent 55956ac4e2
commit 7ee66cf9b5

View file

@ -73,7 +73,9 @@
<simpara>
This is the context when using <function>echo</function>,
<function>print</function>, string interpolation, or the string
<function>print</function>,
<link linkend="language.types.string.parsing">string interpolation</link>,
or the string
<link linkend="language.operators.string">concatenation operator</link>.
</simpara>
@ -168,8 +170,8 @@
<warning>
<simpara>
<!-- TODO add link to internal function definition if we have? -->
Internal functions automatically coerce &null; to scalar types,
<link linkend="functions.internal">Internal functions</link>
automatically coerce &null; to scalar types,
this behaviour is <emphasis>DEPRECATED</emphasis> as of PHP 8.1.0.
</simpara>
</warning>
@ -319,14 +321,6 @@ if ($fst === $str) {
</sect2>
<simplesect>
<!-- when can this happen? TODO Remove? -->
<note>
<simpara>
The behaviour of an automatic conversion to <type>array</type> is currently
undefined.
</simpara>
</note>
<note>
<simpara>
Also, because PHP supports indexing into <type>string</type>s via offsets