Skip to content

Commit 86dd771

Browse files
committed
Updated Rector to commit 78c7d79c4f63e046fc8d0af49315f47d380ac33f
rectorphp/rector-src@78c7d79 use datetime string to avoid prefixing (#6788)
1 parent 7950d5a commit 86dd771

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

rules/Naming/Rector/Class_/RenamePropertyToMatchTypeRector.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
declare (strict_types=1);
44
namespace Rector\Naming\Rector\Class_;
55

6-
use DateTime;
76
use PhpParser\Node;
87
use PhpParser\Node\Name;
98
use PhpParser\Node\Stmt\Class_;
@@ -136,6 +135,6 @@ private function skipDateTimeOrMockObjectPropertyType(Property $property) : bool
136135
if ($this->isName($property->type, ClassName::MOCK_OBJECT)) {
137136
return \true;
138137
}
139-
return $this->isName($property->type, DateTime::class);
138+
return $this->isName($property->type, ClassName::DATE_TIME);
140139
}
141140
}

src/Application/VersionResolver.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '8decc9a693522fec96cc241ce40bc00b36fa7ad9';
22+
public const PACKAGE_VERSION = '78c7d79c4f63e046fc8d0af49315f47d380ac33f';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2025-03-17 11:26:26';
27+
public const RELEASE_DATE = '2025-03-17 11:30:00';
2828
/**
2929
* @var int
3030
*/

src/Enum/ClassName.php

+4
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,8 @@ final class ClassName
1313
* @var string
1414
*/
1515
public const MOCK_OBJECT = 'PHPUnit\\Framework\\MockObject\\MockObject';
16+
/**
17+
* @var string
18+
*/
19+
public const DATE_TIME = 'DateTime';
1620
}

0 commit comments

Comments
 (0)