{"action":"created","issue":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/564","labels_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/564/labels{/name}","comments_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/564/comments","events_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/564/events","html_url":"https://github.com/ApiGen/ApiGen/issues/564","id":60117552,"number":564,"title":"Exception thrown generating document ","user":{"login":"awalls","id":93467,"avatar_url":"https://avatars.githubusercontent.com/u/93467?v=3","gravatar_id":"","url":"https://api.github.com/users/awalls","html_url":"https://github.com/awalls","followers_url":"https://api.github.com/users/awalls/followers","following_url":"https://api.github.com/users/awalls/following{/other_user}","gists_url":"https://api.github.com/users/awalls/gists{/gist_id}","starred_url":"https://api.github.com/users/awalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalls/subscriptions","organizations_url":"https://api.github.com/users/awalls/orgs","repos_url":"https://api.github.com/users/awalls/repos","events_url":"https://api.github.com/users/awalls/events{/privacy}","received_events_url":"https://api.github.com/users/awalls/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-06T15:40:25Z","updated_at":"2015-03-09T22:43:25Z","closed_at":"2015-03-09T10:50:27Z","body":"I'm trying to upgrade to ApiGen v4.0 and running via the phar archive however I am getting an error message when I try to run the ApiGen command:\r\n\r\napigen.phar generate --config apigen.myapp.neon --debug\r\n \r\n```\r\nexception 'ErrorException' with message 'Invalid argument supplied for foreach()' in phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Configuration/ConfigurationOptionsResolver.php:181\r\nStack trace:\r\n#0 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Configuration/ConfigurationOptionsResolver.php(181): Tracy\\Debugger::_errorHandler(2, 'Invalid argumen...', 'phar:///opt/sho...', 181, Array)\r\n#1 [internal function]: ApiGen\\Configuration\\ConfigurationOptionsResolver->ApiGen\\Configuration\\{closure}(Object(Symfony\\Component\\OptionsResolver\\OptionsResolver), NULL)\r\n#2 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/options-resolver/Symfony/Component/OptionsResolver/OptionsResolver.php(932): call_user_func(Object(Closure), Object(Symfony\\Component\\OptionsResolver\\OptionsResolver), NULL)\r\n#3 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/options-resolver/Symfony/Component/OptionsResolver/OptionsResolver.php(769): Symfony\\Component\\OptionsResolver\\OptionsResolver->offsetGet('skipDocPath')\r\n#4 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Configuration/ConfigurationOptionsResolver.php(97): Symfony\\Component\\OptionsResolver\\OptionsResolver->resolve(Array)\r\n#5 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Configuration/Configuration.php(55): ApiGen\\Configuration\\ConfigurationOptionsResolver->resolve(Array)\r\n#6 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Command/GenerateCommand.php(206): ApiGen\\Configuration\\Configuration->resolveOptions(Array)\r\n#7 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Command/GenerateCommand.php(139): ApiGen\\Command\\GenerateCommand->prepareOptions(Array)\r\n#8 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(252): ApiGen\\Command\\GenerateCommand->execute(Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#9 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\\Component\\Console\\Command\\Command->run(Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#10 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\\Component\\Console\\Application->doRunCommand(Object(ApiGen\\Command\\GenerateCommand), Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#11 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Console/Application.php(55): Symfony\\Component\\Console\\Application->doRun(Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#12 phar:///opt/myapp/scripts/docs/php/apigen.phar/vendor/symfony/console/Symfony/Component/Console/Application.php(126): ApiGen\\Console\\Application->doRun(Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\r\n#13 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/ApiGen/Console/Application.php(64): Symfony\\Component\\Console\\Application->run(Object(ApiGen\\Console\\Input\\LiberalFormatArgvInput), NULL)\r\n#14 phar:///opt/myapp/scripts/docs/php/apigen.phar/src/apigen.php(52): ApiGen\\Console\\Application->run()\r\n#15 /opt/myapp/scripts/docs/php/apigen.phar(12): require('phar:///opt/sho...')\r\n#16 {main}\r\n```\r\n\r\nThe neon config file above is:\r\n```\r\n# Source file or directory to parse\r\nsource: [/opt/myapp/www/application/controllers,\r\n         /opt/myapp/www/application/config,\r\n         /opt/myapp/www/application/core,\r\n         /opt/myapp/www/application/helpers,\r\n         /opt/myapp/www/application/hooks,\r\n         /opt/myapp/www/application/libraries,\r\n         /opt/myapp/www/application/models]\r\n# Directory where to save the generated documentation\r\ndestination: /opt/myapp/www/docs/php\r\n# List of allowed file extensions\r\nextensions: [php]\r\n# Mask to exclude file or directory from processing\r\nexclude:\r\n# Don't generate documentation for classes from file or directory with this mask\r\nskipDocPath:\r\n# Character set of source files\r\ncharset: auto\r\n# Main project name prefix\r\nmain: \r\n\r\n# Title of generated documentation\r\ntitle: myapp Application\r\n# Documentation base URL\r\nbaseUrl: http://docs.myapp.local/php\r\n# Google Custom Search ID\r\ngoogleCseId:\r\n# Google Analytics tracking code\r\ngoogleAnalytics:\r\n# Template config file\r\ntemplateConfig: '/opt/myapp/vendor/apigen/theme-bootstrap/src/config.neon'\r\n# Grouping of classes\r\ngroups: auto\r\n\r\n# Generate documentation for methods and properties with given access level\r\naccessLevels: [private, public, protected]\r\n# Generate documentation for elements marked as internal and display internal documentation parts\r\ninternal: No\r\n# Generate documentation for PHP internal classes\r\nphp: Yes\r\n# Generate tree view of classes, interfaces and exceptions\r\ntree: Yes\r\n# Generate documentation for deprecated classes, methods, properties and constants\r\ndeprecated: Yes\r\n# Generate documentation of tasks\r\ntodo: Yes\r\n# Generate highlighted source code files\r\nsourceCode: Yes\r\n# Add a link to download documentation as a ZIP archive\r\ndownload: Yes\r\n\r\n# Don't display scanning and generating messages\r\nquiet: No\r\n# Display additional information in case of an error\r\ndebug: No\r\n```\r\n\r\nAny ideas? \r\nThanks."},"comment":{"url":"https://api.github.com/repos/ApiGen/ApiGen/issues/comments/77960505","html_url":"https://github.com/ApiGen/ApiGen/issues/564#issuecomment-77960505","issue_url":"https://api.github.com/repos/ApiGen/ApiGen/issues/564","id":77960505,"user":{"login":"awalls","id":93467,"avatar_url":"https://avatars.githubusercontent.com/u/93467?v=3","gravatar_id":"","url":"https://api.github.com/users/awalls","html_url":"https://github.com/awalls","followers_url":"https://api.github.com/users/awalls/followers","following_url":"https://api.github.com/users/awalls/following{/other_user}","gists_url":"https://api.github.com/users/awalls/gists{/gist_id}","starred_url":"https://api.github.com/users/awalls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/awalls/subscriptions","organizations_url":"https://api.github.com/users/awalls/orgs","repos_url":"https://api.github.com/users/awalls/repos","events_url":"https://api.github.com/users/awalls/events{/privacy}","received_events_url":"https://api.github.com/users/awalls/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T22:43:25Z","updated_at":"2015-03-09T22:43:25Z","body":"Ok, I'll try this via Composer to see if it works but I'd prefer to use the PHAR file longer term are there are too many dependencies to install via Composer."}}