Skip to content

Commit

Permalink
Updated Rector to commit 7bbe9ba2af41fbb64a2817cd44d19665aa79f186
Browse files Browse the repository at this point in the history
rectorphp/rector-src@7bbe9ba [DX] Warn about ->withPhpSets() called multiple times, to avoid invalid set mix (#6632)
  • Loading branch information
TomasVotruba committed Dec 27, 2024
1 parent 59d44f7 commit 24e1aac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '5f21af7a492f8be43972c1d89fa150ae9e37475c';
public const PACKAGE_VERSION = '7bbe9ba2af41fbb64a2817cd44d19665aa79f186';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-12-27 20:20:25';
public const RELEASE_DATE = '2024-12-27 16:37:19';
/**
* @var int
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Configuration/RectorConfigBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ final class RectorConfigBuilder
*/
private array $groupLoadedSets = [];
private ?string $editorUrl = null;
/**
* @api soon to be used
*/
private ?bool $isWithPhpSetsUsed = null;
private ?bool $isWithPhpLevelUsed = null;
public function __invoke(RectorConfig $rectorConfig) : void
Expand Down Expand Up @@ -369,6 +366,9 @@ public function withPhpPolyfill() : self
*/
public function withPhpSets(bool $php83 = \false, bool $php82 = \false, bool $php81 = \false, bool $php80 = \false, bool $php74 = \false, bool $php73 = \false, bool $php72 = \false, bool $php71 = \false, bool $php70 = \false, bool $php56 = \false, bool $php55 = \false, bool $php54 = \false, bool $php53 = \false, bool $php84 = \false) : self
{
if ($this->isWithPhpSetsUsed === \true) {
throw new InvalidConfigurationException(\sprintf('Method "%s()" can be called only once. It always includes all previous sets UP TO the defined version.%sThe best practise is to call it once with no argument. That way it will pick up PHP version from composer.json and your project will always stay up to date.', __METHOD__, \PHP_EOL));
}
$this->isWithPhpSetsUsed = \true;
$pickedArguments = \array_filter(\func_get_args());
if ($pickedArguments !== []) {
Expand Down

0 comments on commit 24e1aac

Please sign in to comment.