We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4d578d commit b77ce83Copy full SHA for b77ce83
src/EventSubscriber/SaveStatisticsListener.php
@@ -102,11 +102,14 @@ public function saveStatistics(ConsoleTerminateEvent $event)
102
$information = $information . ',' . $countCodeLines;
103
}
104
105
-
106
- $this->fs->appendToFile(
107
- $path . date('Y-m-d') . '.csv',
108
- $information . PHP_EOL
109
- );
+ try{
+ $this->fs->appendToFile(
+ $path . date('Y-m-d') . '.csv',
+ $information . PHP_EOL
+ );
110
+ }catch (\Exception $exception) {
111
+ return;
112
+ }
113
114
115
/**
0 commit comments