From ee151ad29df6dda9ff46717fb0efafa9dcc87f00 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 3 Dec 2023 13:54:35 +0100 Subject: [PATCH] fix phpdoc parameters for newer releases --- Makefile | 2 +- doc/Generating Source Code Documentation.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f37eefb5..08252394 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ doc-js: ## Generate JS code documentation. jsdoc -p -d doc/jsdoc js/privatebin.js js/legacy.js doc-php: ## Generate JS code documentation. - phpdoc --visibility public,protected,private -t doc/phpdoc -d lib/ + phpdoc --visibility=public,protected,private --target=doc/phpdoc --directory=lib/ increment: ## Increment and commit new version number, set target version using `make increment VERSION=1.2.3`. for F in `grep -l -R $(REGEX_CURRENT_VERSION) $(VERSION_FILES) | grep -v -e tst/log/ -e ":0" -e CHANGELOG.md`; \ diff --git a/doc/Generating Source Code Documentation.md b/doc/Generating Source Code Documentation.md index 0e9f1e0a..5f41390d 100644 --- a/doc/Generating Source Code Documentation.md +++ b/doc/Generating Source Code Documentation.md @@ -21,7 +21,7 @@ $ sudo pear install phpdoc/phpDocumentor To generate the documentation, change into the main directory and run phpdoc: ```console $ cd PrivateBin -$ phpdoc --visibility public,protected,private -t doc/phpdoc -d lib/ +$ phpdoc --visibility=public,protected,private --target=doc/phpdoc --directory=lib/ ``` **Note:** When used with PHP 7, the prerelease of phpDocumentator 2.9 needs to be