Jump to content

block34

Members
  • Content Count

    13
  • Joined

  • Last visited

Everything posted by block34

  1. $ docker run \ --rm \ -v $(pwd):/data \ phpdockerio/php72-fpm \ --directory src \ --target docs docker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"--directory\": executable file not found in $PATH": unknown. ERRO[0000] error waiting for container: context canceled But does it work for you? Can't you do some tests?
  2. I really think so. It will mean that I will await any future developments. Thanks anyway.
  3. The problem is that I don't speak English very well (I apologize). Could you explain yourself a little better? Besides the phpdoc / phpdoc container should I use a container with PHP 7.2? Could you give a practical example?
  4. $ docker run \ --rm \ -v $(pwd):/:/data phpdoc/phpdoc:7.2 \ --directory src \ --target docs Unable to find image 'phpdoc/phpdoc:7.2' locally docker: Error response from daemon: manifest for phpdoc/phpdoc:7.2 not found. See 'docker run --help'.
  5. $ docker run --rm -v $(pwd):/data phpdoc/phpdoc -d src -t docs # show the output web page (see attachment) $ firefox docs/classes/Examples.Example.html Because into the output web page, it appears Warning: count(): Parameter must be an array or an object that implements Countable......
  6. Look at these examples. Docblock only for the class: /** * Tool to format a text. */ class Formatter { function format() {} } Docblock only for the method: class Formatter { /** * Format a text. */ function format() {} } Docblocks for both (slightly diversified): /** * Tool to format a text. */ class Formatter { /** * Format a text. */ function format() {} } Identical docblocks for both (although they create a little redundancy for my taste): /** * Format a text. */ class Formatter { /** * Format a text. */ function format() {} } Do you usually use pattern[/ u] to comment on your classes?
  7. block34

    phpdoc not work

    Sorry, first time I use this form
  8. block34

    phpdoc not work

    ++ composer require --dev phpdocumentor/phpdocumentor Using version ^2.9 for phpdocumentor/phpdocumentor ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Nothing to install or update Package herrera-io/json is abandoned, you should avoid using it. Use kherge/json instead. Package herrera-io/phar-update is abandoned, you should avoid using it. No replacement was suggested. Package kherge/version is abandoned, you should avoid using it. No replacement was suggested. Generating autoload files <?php // src/Test.php /** * Example. */ ++ vendor/bin/phpdoc --directory src --target docs PHP Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@JMS\Serializer\Annotation\Type" in property phpDocumentor\Configuration::$title does not exist, or could not be auto-loaded. in vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54 Because?
  9. block34

    phpdoc not work

    $ phpdoc --directory src --target docs PHP Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@JMS\Serializer\Annotation\Type" in property phpDocumentor\Configuration::$title does not exist, or could not be auto-loaded. in /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php:54 Stack trace: #0 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(741): Doctrine\Common\Annotations\AnnotationException::semanticalError('The annotation ...') #1 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(663): Doctrine\Common\Annotations\DocParser->Annotation() #2 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/DocParser.php(354): Doctrine\Common\Annotations\DocParser->Annotations() #3 /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationReader.php(254): Doctrine\Common\Annotations\DocParser->parse('/**\n * @var...', 'pr in /tmp/tmp.1LouiU103a/vendor/doctrine/annotations/lib/Doctrine/Common/Annotations/AnnotationException.php on line 54 Because?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.