elger/PHP_CodeBrowser — pull request #1 by xepa (2013-07-23 10:29:09+00:00)
Title: replaceCommonSourcePath, parseSourceDirectory, getCommonSourcePath expec...

When running phpcb and no errors are found following errors / warnings happen

PHP Warning: Invalid argument supplied for foreach() in /Users/michiel/Documents/workspace/PHP_CodeBrowser/src/ErrorHandler.php on line 103

Similar errors also happen but are not listed here, the problem is that the $files variable in getFilesWithErrors is initialised with null and should be array() instead.

...t an array and not null (happens when there are no errors)