Skip to content

use-cache in config is unrecognized #3993

@charjr

Description

@charjr

How to reproduce:

<?xml version="1.0" encoding="UTF-8" ?>
<phpdocumentor configVersion="3"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xmlns="https://www.phpdoc.org">
  <use-cache>false</use-cache>
  <title>Foo</title>
  <version number="3.0.0">
    <api>
      <source dsn=".">
        <path>src</path>
      </source>
    </api>
  </version>
</phpdocumentor>

Error received:

In ArrayNode.php line 327:
                                                                                    
  Unrecognized option "use_cache" under "phpdocumentor". Did you mean "use-cache"?  

It seems to be converting dashes into underscores, and thus, despite providing use-cache it thinks I've passed use_cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions