Skip to content

Type hints not showing up in documentation #421

@timschwartz

Description

@timschwartz

In the example documentation (https://phpdox.net/demo/phpDox/classes/TheSeer_phpDox_Application.xhtml), I can see type hints like:

private ProgressLogger $logger;
private Factory $factory;

But, in my own generated documentation instead of seeing the type hint, there's just an extra space between 'private' and '$logger'.

I'm using phpdox from git master on Debian 12 with PHP 8.1.7.

My phpdox.xml:

<?xml version="1.0" encoding="utf-8" ?>
<phpdox xmlns="http://xml.phpdox.net/config" silent="false">
    <bootstrap/>
    <project name="phpdox" source="${basedir}/src" workdir="${basedir}/build/phpdox/xml">
        <collector publiconly="false" backend="parser" encoding="auto">
            <include mask="*.php"/>
            <exclude mask=""/>
            <inheritance resolve="true">
            </inheritance>
        </collector>
        <generator output="${basedir}/docs">
            <enrich base="${basedir}/">
                <source type="phploc">
                    <file name="phploc.xml" />
                </source>
            </enrich>
            <build engine="html" enabled="true" output=".">
                <template dir="${phpDox.home}/templates/html"/>
                <file extension="xhtml"/>
            </build>
        </generator>
    </project>
</phpdox>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions