block34 Posted November 19, 2019 Share Posted November 19, 2019 $ 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...... Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/ Share on other sites More sharing options...
requinix Posted November 19, 2019 Share Posted November 19, 2019 Get a Docker container that has PHP 7.2. Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571709 Share on other sites More sharing options...
block34 Posted November 20, 2019 Author Share Posted November 20, 2019 14 hours ago, requinix said: Get a Docker container that has PHP 7.2. $ 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'. Â Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571726 Share on other sites More sharing options...
block34 Posted November 25, 2019 Author Share Posted November 25, 2019 On 11/20/2019 at 9:43 AM, block34 said: $ 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'. Â @requinix you are there? Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571867 Share on other sites More sharing options...
requinix Posted November 25, 2019 Share Posted November 25, 2019 Still here. Still don't have anything to add other than you need a Docker container with PHP version 7.2. Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571877 Share on other sites More sharing options...
block34 Posted November 26, 2019 Author Share Posted November 26, 2019 17 hours ago, requinix said: Still here. Still don't have anything to add other than you need a Docker container with PHP version 7.2. 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? Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571902 Share on other sites More sharing options...
requinix Posted November 26, 2019 Share Posted November 26, 2019 The version of phpDoc you have needs PHP 7.2. If you are using an official Docker image from phpDoc then they did something wrong. If you are using a Docker image you created yourself then you need to create a new one that has PHP 7.2 and then add phpDoc to it. Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571918 Share on other sites More sharing options...
block34 Posted November 28, 2019 Author Share Posted November 28, 2019 On 11/26/2019 at 8:12 PM, requinix said: If you are using an official Docker image from phpDoc then they did something wrong. I really think so. It will mean that I will await any future developments. Thanks anyway. Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571960 Share on other sites More sharing options...
maxxd Posted November 28, 2019 Share Posted November 28, 2019 On 11/26/2019 at 2:12 PM, requinix said: The version of phpDoc you have needs PHP 7.2. https://hub.docker.com/r/phpdockerio/php72-fpm Use that one? Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1571973 Share on other sites More sharing options...
block34 Posted November 30, 2019 Author Share Posted November 30, 2019 On 11/28/2019 at 6:50 PM, maxxd said: https://hub.docker.com/r/phpdockerio/php72-fpm Use that one? $ 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? Quote Link to comment https://forums.phpfreaks.com/topic/309550-docker-warning-count-parameter-must-be-an-array-or-an-object-that-implements-countable/#findComment-1572002 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.