phpdox
phpdox copied to clipboard
Type hints not showing up in documentation
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>
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.
@theseer bump