theseer / phpdox

Documentation generator for PHP Code using standard technology (SRC, DOCBLOCK, XML and XSLT)
http://phpdox.de
Other
601 stars 121 forks source link

Error with php 8.1.2 #430

Open jdelporte opened 1 month ago

jdelporte commented 1 month ago

Hi, Here is the error I encountered

PHP Version: 8.1.2-1ubuntu2.18 (Linux)
PHPDox Version: 0.12.0-dev
ErrorException: E_DEPRECATED 
Location: /usr/share/php/TheSeer/phpDox/generator/project/collections/AbstractCollection.php (Line 39)

Return type of TheSeer\phpDox\Generator\AbstractCollection::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice

No stacktrace available

My config file was as follow:

<?xml version="1.0" encoding="utf-8" ?>
<phpdox xmlns="http://xml.phpdox.net/config">
  <project name="Example" source="${basedir}/src" workdir="${basedir}/build/api/xml">
    <collector backend="parser" />
    <generator output="${basedir}/build/api">
      <build engine="html" output="html"/>
    </generator>
  </project>
</phpdox>