Skip to content

Commit

Permalink
Updated Rector to commit 037153ba50e85666dc8bdc90f832ea4c0ff3677e
Browse files Browse the repository at this point in the history
rectorphp/rector-src@037153b [DX] Fix missing Rector\RectorGenerator\Exception\ConfigurationException (#5558)
  • Loading branch information
TomasVotruba committed Feb 4, 2024
1 parent 8e25ebe commit 8cb1866
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions rules/Php80/Rector/Class_/AnnotationToAttributeRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use Rector\PhpAttribute\NodeFactory\PhpAttributeGroupFactory;
use Rector\PhpDocParser\PhpDocParser\PhpDocNodeTraverser;
use Rector\Rector\AbstractRector;
use Rector\RectorGenerator\Exception\ConfigurationException;
use Rector\Exception\Configuration\InvalidConfigurationException;
use Rector\ValueObject\PhpVersionFeature;
use Rector\VersionBonding\Contract\MinPhpVersionInterface;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\ConfiguredCodeSample;
Expand Down Expand Up @@ -143,7 +143,7 @@ public function getNodeTypes() : array
public function refactor(Node $node) : ?Node
{
if ($this->annotationsToAttributes === []) {
throw new ConfigurationException(\sprintf('The "%s" rule requires configuration.', self::class));
throw new InvalidConfigurationException(\sprintf('The "%s" rule requires configuration.', self::class));
}
$phpDocInfo = $this->phpDocInfoFactory->createFromNode($node);
if (!$phpDocInfo instanceof PhpDocInfo) {
Expand Down
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 = 'ba1cad35898880f6de97c9743aab96d2ac90ba73';
public const PACKAGE_VERSION = '037153ba50e85666dc8bdc90f832ea4c0ff3677e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-05 04:08:15';
public const RELEASE_DATE = '2024-02-05 04:51:31';
/**
* @var int
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Util/MemoryLimiter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace Rector\Util;

use RectorPrefix202402\Nette\Utils\Strings;
use Rector\RectorGenerator\Exception\ConfigurationException;
use Rector\Exception\Configuration\InvalidConfigurationException;
use Rector\ValueObject\Configuration;
/**
* @inspiration https://github.com/phpstan/phpstan-src/commit/ccc046ca473dcdb5ce9225cc05d7808f2e327f40
Expand All @@ -26,7 +26,7 @@ public function adjust(Configuration $configuration) : void
$memorySetResult = \ini_set('memory_limit', $memoryLimit);
if ($memorySetResult === \false) {
$errorMessage = \sprintf('Memory limit "%s" cannot be set.', $memoryLimit);
throw new ConfigurationException($errorMessage);
throw new InvalidConfigurationException($errorMessage);
}
}
private function validateMemoryLimitFormat(string $memoryLimit) : void
Expand All @@ -36,6 +36,6 @@ private function validateMemoryLimitFormat(string $memoryLimit) : void
return;
}
$errorMessage = \sprintf('Invalid memory limit format "%s".', $memoryLimit);
throw new ConfigurationException($errorMessage);
throw new InvalidConfigurationException($errorMessage);
}
}

0 comments on commit 8cb1866

Please sign in to comment.