phpDocumentor: phpDoc3 failing when ran in the same way I used to run phpDoc2
Expected Behavior
php phpdoc2.phar run -d ./ -t ./docs --ignore .git/,.idea/,node_modules/,semantic/,tinymce/,vendor/ --cache-folder ../phpdoc_cache
command generates the docs in PHPD3 as it used to in PHPD2
Actual Behavior
run needs to be added after phpdoc.phar, and even then, the whole thing crashes with
E:\Software\Laragon\www\phbooru>php phpdoc2.phar run -d ./ -t ./docs --ignore .git/,.idea/,node_modules/,semantic/,tinymce/,vendor/ --cache-folder ../phpdoc_cache
01:48:57 ERROR [console] Error thrown while running command "run -d "./" -t "./docs" --ignore ".git/,.idea/,node_modules/,semantic/,tinymce/,vendor/" --cache-folder "../phpdoc_cache"". Message: "Cannot use object of type phpDocumentor\DomainModel\Path as array" ["error" => Error { …},"command" => "run -d "./" -t "./docs" --ignore ".git/,.idea/,node_modules/,semantic/,tinymce/,vendor/" --cache-folder "../phpdoc_cache"","message" => "Cannot use object of type phpDocumentor\DomainModel\Path as array"] []
01:48:57 ERROR [console] Error thrown while running command "run -d "./" -t "./docs" --ignore ".git/,.idea/,node_modules/,semantic/,tinymce/,vendor/" --cache-folder "../phpdoc_cache". Message: "Cannot use object of type phpDocumentor\DomainModel\Path as array" ["error" => Error { …},"command" => "run -d "./" -t "./docs" --ignore ".git/,.idea/,node_modules/,semantic/,tinymce/,vendor/" --cache-folder "../phpdoc_cache"","message" => "Cannot use object of type phpDocumentor\DomainModel\Path as array"] []
In Filesystem.php line 614:
Cannot use object of type phpDocumentor\DomainModel\Path as array
project:run [-t|--target [TARGET]] [--cache-folder [CACHE-FOLDER]] [-f|--filename [FILENAME]] [-d|--directory [DIRECTORY]] [--encoding [ENCODING]] [--extensions [EXTENSIONS]] [-i|--ignore [IGNORE]] [--ignore-tags [IGNORE-TAGS]] [--hidden] [--ignore-symlinks] [-m|--markers [MARKERS]] [--title [TITLE]] [--force] [--validate] [--visibility [VISIBILITY]] [--defaultpackagename [DEFAULTPACKAGENAME]] [--sourcecode] [-p|--progressbar] [--template [TEMPLATE]] [--parseprivate] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-e|--env ENV] [--no-debug] [-c|--config [CONFIG]] [--log [LOG]] [--] <command>
E:\Software\Laragon\www\phbooru>pause
Steps to Reproduce the Problem
- Run phpDoc 3 in the described way
- Run phpDoc 2 in the exact same way (except without
run) to confirm that this one’s working nicely - Notice, that “This first alpha release should be a drop-in replacement for phpDocumentor v2” might not exactly hold true
Your environment
- Version used: 3.0.0-alpha2, compared to whichever version is on the website
- Install method: phar
- php version: 7.1.5
- Operating system and version Win10 x64
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 20 (12 by maintainers)
I was able to reproduce the issue you have on a windows machine. Thanks for your feedback. I think we can address this. Please follow #2130 for more updates. Since this is literally the same issue.