Skip to content

Error with php 8.1.2 #430

Description

@jdelporte

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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