diff --git a/Lib/Runner.php b/Lib/Runner.php index 2c0fd6b..d54e9ff 100644 --- a/Lib/Runner.php +++ b/Lib/Runner.php @@ -105,9 +105,10 @@ private function showScanReport(array $map, array $scanResult): int } $this->output(PHP_EOL . 'Unused dependencies found!' . PHP_EOL); - array_walk($result, static function ($packageName) { - echo ' -' . $packageName . PHP_EOL; - }); + array_walk($result, + function($packageName) { + $this->output(' -' . $packageName . PHP_EOL); + }); return self::HAS_UNUSED_CODE; }