Closed cmb69 closed 3 years ago
DocBook 5.2 adds support for union and intersection types. We already support union types, but as of PHP 8.1.0 intersection types are available, so we now support these as well.
Back port the syntax for intersection types to our older DocBook DTD.
Example: <type class="intersection"><type>Traversable</type><type>Countable</type></type>
<type class="intersection"><type>Traversable</type><type>Countable</type></type>
cc @Girgias
We also need support for intersection types in docgen.php, but that doesn't look urgent.
DocBook 5.2 adds support for union and intersection types. We already support union types, but as of PHP 8.1.0 intersection types are available, so we now support these as well.
Back port the syntax for intersection types to our older DocBook DTD.
Example:
<type class="intersection"><type>Traversable</type><type>Countable</type></type>
cc @Girgias