Skip to content

[BUG] count(): Parameter must be an array or an object that implements Countable #315

@renepardon

Description

@renepardon

Within my ANT task I receive the following error:

phpdox:
   [phpdox] phpDox 0.10.1 - Copyright (C) 2010 - 2017 by Arne Blankerts and Contributors
   [phpdox] 
   [phpdox] [17.11.2017 - 10:58:05] Using config file '/Users/<user>/Projects/<projectpath>/phpdox.xml'
   [phpdox] [17.11.2017 - 10:58:05] Registered collector backend 'parser'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'build'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'git'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'checkstyle'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'phpcs'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'pmd'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'phpunit'
   [phpdox] [17.11.2017 - 10:58:05] Registered enricher 'phploc'
   [phpdox] [17.11.2017 - 10:58:05] Registered output engine 'xml'
   [phpdox] [17.11.2017 - 10:58:05] Registered output engine 'html'
   [phpdox] 
   [phpdox] 
   [phpdox] Oups... phpDox encountered a problem and has terminated!
   [phpdox] 
   [phpdox] It most likely means you've found a bug, so please file a report for this
   [phpdox] and paste the following details and the stacktrace (if given) along:
   [phpdox] 
   [phpdox] PHP Version: 7.2.0RC6 (Darwin)
   [phpdox] PHPDox Version: 0.10.1
   [phpdox] ErrorException: E_WARNING 
   [phpdox] Location: phar:///usr/local/bin/phpdox/phpdox/shared/FileInfoCollection.php (Line 67)
   [phpdox] 
   [phpdox] count(): Parameter must be an array or an object that implements Countable
   [phpdox] 
   [phpdox] #0 phar:///usr/local/bin/phpdox/phpdox/shared/FileInfoCollection.php(67): count()
   [phpdox] #1 phar:///usr/local/bin/phpdox/phpdox/shared/FileInfoCollection.php(53): TheSeer\phpDox\FileInfoCollection->count()
   [phpdox] #2 phar:///usr/local/bin/phpdox/phpdox/bootstrap/Bootstrap.php(56): TheSeer\phpDox\FileInfoCollection->valid()
   [phpdox] #3 phar:///usr/local/bin/phpdox/phpdox/CLI.php(130): TheSeer\phpDox\Bootstrap->load()
   [phpdox] #4 /usr/local/bin/phpdox(466): TheSeer\phpDox\CLI->run()
   [phpdox] 
   [phpdox] 
   [phpdox] 

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions