From 41de3b70d70b39d8308c73e8423af36541e471b6 Mon Sep 17 00:00:00 2001 From: insolita Date: Thu, 15 Apr 2021 23:52:41 +0800 Subject: [PATCH] fix silent output [ci skip] --- Lib/Runner.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; }