Skip to content

Commit

Permalink
Make check more explicit (#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 16, 2023
1 parent 99bdd27 commit ef25722
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Kernel/RectorKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct()
return;
}

if (VersionResolver::PACKAGE_VERSION !== '@package_version@') {
if ($this->isPrefixedBuild()) {
return;
}

Expand Down Expand Up @@ -141,4 +141,9 @@ private static function getCacheDir(): string
// see https://github.com/rectorphp/rector/issues/7700
return sys_get_temp_dir() . '/rector/';
}

private function isPrefixedBuild(): bool
{
return VersionResolver::PACKAGE_VERSION !== '@package_version@';
}
}

0 comments on commit ef25722

Please sign in to comment.