summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app/codechecker.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/app/codechecker.php b/lib/private/app/codechecker.php
index dbec53579a8..f9d24be6ad1 100644
--- a/lib/private/app/codechecker.php
+++ b/lib/private/app/codechecker.php
@@ -103,8 +103,9 @@ class CodeChecker extends BasicEmitter {
foreach ($iterator as $file) {
/** @var SplFileInfo $file */
$this->emit('CodeChecker', 'analyseFileBegin', [$file->getPathname()]);
- $errors = array_merge($this->analyseFile($file), $errors);
- $this->emit('CodeChecker', 'analyseFileFinished', [$errors]);
+ $fileErrors = $this->analyseFile($file);
+ $this->emit('CodeChecker', 'analyseFileFinished', [$fileErrors]);
+ $errors = array_merge($fileErrors, $errors);
}
return $errors;