Updated Rector to commit b042152eae866b5578ea15cb38e27ce493937001

b042152eae [CodeQuality] Skip __construct() method on ExplicitReturnNullRector (#5758)
This commit is contained in:
Tomas Votruba 2024-03-22 19:55:35 +00:00
parent e10d636f62
commit 024ebc62a1
2 changed files with 6 additions and 2 deletions

View File

@ -20,6 +20,7 @@ use Rector\NodeTypeResolver\PHPStan\Type\TypeFactory;
use Rector\PhpParser\Node\BetterNodeFinder;
use Rector\Rector\AbstractRector;
use Rector\TypeDeclaration\TypeInferer\SilentVoidResolver;
use Rector\ValueObject\MethodName;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;
/**
@ -110,6 +111,9 @@ CODE_SAMPLE
if ($node->returnType instanceof Node) {
return null;
}
if ($this->isName($node, MethodName::CONSTRUCT)) {
return null;
}
if ($this->containsYieldOrThrow($node)) {
return null;
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '61c7e9288885218b76a4a9431bba33a37059dea5';
public const PACKAGE_VERSION = 'b042152eae866b5578ea15cb38e27ce493937001';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-03-22 18:07:31';
public const RELEASE_DATE = '2024-03-23 02:53:17';
/**
* @var int
*/