1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-10 23:18:40 +01:00
psalm/src/Psalm/Progress/DebugProgress.php

41 lines
766 B
PHP

<?php
namespace Psalm\Progress;
use function error_reporting;
use const E_ALL;
class DebugProgress extends Progress
{
public function setErrorReporting(): void
{
error_reporting(E_ALL);
}
public function debug(string $message): void
{
$this->write($message);
}
public function startScanningFiles(): void
{
$this->write('Scanning files...' . "\n");
}
public function startAnalyzingFiles(): void
{
$this->write('Analyzing files...' . "\n");
}
public function startAlteringFiles(): void
{
$this->write('Updating files...' . "\n");
}
public function alterFileDone(string $file_name): void
{
$this->write('Altered ' . $file_name . "\n");
}
}