Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type hints not showing up in documentation #421

Open
timschwartz opened this issue Oct 22, 2022 · 2 comments
Open

Type hints not showing up in documentation #421

timschwartz opened this issue Oct 22, 2022 · 2 comments

Comments

@timschwartz
Copy link

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>
@timschwartz
Copy link
Author

I uploaded my documentation to https://imperian-systems.github.io/docker-php-client/classes/ImperianSystems_DockerPhpClient_DockerClient.xhtml

I've noticed that the type hints do appear when I view a trait directly (https://imperian-systems.github.io/docker-php-client/traits/ImperianSystems_DockerPhpClient_Networks_NetworksTrait.xhtml) but they do not appear in classes.

@timschwartz
Copy link
Author

@theseer bump

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant