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

Error with php 8.1.2 #430

Open
jdelporte opened this issue Jul 12, 2024 · 0 comments
Open

Error with php 8.1.2 #430

jdelporte opened this issue Jul 12, 2024 · 0 comments

Comments

@jdelporte
Copy link

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>
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