Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Mar 3, 2024
1 parent 6b37be6 commit 10fb53e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([]);
$rectorConfig->skip([]);
$rectorConfig->diffs();

$rectorConfig->autoloadPaths([]);
$rectorConfig->bootstrapFiles([]);
Expand Down
5 changes: 0 additions & 5 deletions src/Config/RectorConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ public function noDiffs(): void
SimpleParameterProvider::setParameter(Option::NO_DIFFS, true);
}

public function diffs(): void
{
SimpleParameterProvider::setParameter(Option::NO_DIFFS, false);
}

public function memoryLimit(string $memoryLimit): void
{
SimpleParameterProvider::setParameter(Option::MEMORY_LIMIT, $memoryLimit);
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration/RectorConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ final class RectorConfigBuilder

private bool $removeUnusedImports = false;

private ?bool $noDiffs = null;
private bool $noDiffs = false;

private ?string $memoryLimit = null;

Expand Down Expand Up @@ -202,7 +202,7 @@ public function __invoke(RectorConfig $rectorConfig): void
$rectorConfig->removeUnusedImports($this->removeUnusedImports);
}

if ($this->noDiffs !== null && $this->noDiffs) {
if ($this->noDiffs) {
$rectorConfig->noDiffs();
}

Expand Down

0 comments on commit 10fb53e

Please sign in to comment.