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

39 lines
765 B
PHP
Raw Normal View History

<?php
namespace Psalm\Progress;
use const E_ALL;
2019-07-05 22:24:00 +02:00
use function error_reporting;
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");
}
2019-06-02 15:59:45 +02:00
public function startAlteringFiles(): void
{
$this->write('Updating files...' . "\n");
}
public function alterFileDone(string $file_path) : void
{
$this->write('Altered ' . $file_path . "\n");
}
}