From b4235c46ba733d60a7c3000aa03b6dcda2ce0045 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Fri, 8 Dec 2023 14:45:41 +0000 Subject: [PATCH] Updated Rector to commit f2a8542f3e7538a2c1aafdfd93a773e4065adcff https://github.com/rectorphp/rector-src/commit/f2a8542f3e7538a2c1aafdfd93a773e4065adcff Typo fix (#5341) --- .../MatchParamTypeExpectedNameResolver.php | 4 ++-- src/Application/VersionResolver.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rules/Naming/ExpectedNameResolver/MatchParamTypeExpectedNameResolver.php b/rules/Naming/ExpectedNameResolver/MatchParamTypeExpectedNameResolver.php index 6bdc34cad3b..86a6708c411 100644 --- a/rules/Naming/ExpectedNameResolver/MatchParamTypeExpectedNameResolver.php +++ b/rules/Naming/ExpectedNameResolver/MatchParamTypeExpectedNameResolver.php @@ -39,12 +39,12 @@ final class MatchParamTypeExpectedNameResolver if ($param->type === null) { return null; } - $staticType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); - // include nullabgitle too + // include nullable too // skip date time + date time interface, as should be kept if ($this->nodeTypeResolver->isObjectType($param->type, new ObjectType('DateTimeInterface'))) { return null; } + $staticType = $this->staticTypeMapper->mapPhpParserNodePHPStanType($param->type); $expectedName = $this->propertyNaming->getExpectedNameFromType($staticType); if (!$expectedName instanceof ExpectedName) { return null; diff --git a/src/Application/VersionResolver.php b/src/Application/VersionResolver.php index e756179ee84..05d2f68e9c4 100644 --- a/src/Application/VersionResolver.php +++ b/src/Application/VersionResolver.php @@ -19,12 +19,12 @@ final class VersionResolver * @api * @var string */ - public const PACKAGE_VERSION = '14f11280c85a2776b211dac001f0accd4295c587'; + public const PACKAGE_VERSION = 'f2a8542f3e7538a2c1aafdfd93a773e4065adcff'; /** * @api * @var string */ - public const RELEASE_DATE = '2023-12-08 21:39:23'; + public const RELEASE_DATE = '2023-12-08 14:43:36'; /** * @var int */