Skip to content

Error only when passing an XML config: Assert.php line 2074 - "" is not a valid path  #3830

@oliveratgithub

Description

@oliveratgithub

Using the phpdoc/phpdoc:latest Docker image, and only if I pass along an XML config file, I get the following error.
WITHOUT a config file, the documentation parsing works flawless.

Expected behavior

Speakable error message, or the documentation should get parsed…

Actual behavior

Using different XML configs (initially I had still an old one… but updated it & tried agatin), I always get the following error:

Attaching to phpdoc-1
phpdoc-1  | phpDocumentor 3.4.2-v3.5.3+10b8a76
phpdoc-1  | 
phpdoc-1  | 
phpdoc-1  | In Assert.php line 2074:
phpdoc-1  |                           
phpdoc-1  |   "" is not a valid path  
phpdoc-1  |                           
phpdoc-1  | 

Steps to reproduce the problem

  1. Have a phpdoc XML-config file ready
  2. Setup a docker-compose.yml & add a service for the image "phpdoc/phpdoc:latest"
phpdoc:
       image: phpdoc/phpdoc:latest
       platform: linux/x86_64
       restart: no
       volumes:
       command:
  1. Bind the XML config file to the service using "volumes:"
volumes:
           - "./config.xml:/config.xml"
           - "./app-code:/data"
           - "./docs:/docs"
  1. Set the "command:" to include an XML config file
command: -c /config.xml -d /data -t /docs
  1. Run the docker-service: docker compose up -d phpdoc

Your environment

Docker, macOS

  • Version used: phpDocumentor 3.4.2-v3.5.3+10b8a76
  • Install method: Docker image
  • Operating system and version (e.g. Ubuntu 20.04, Windows 10): macOS 15
  • Link to your project: n/a
  • Attach code that is involved

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