Updated Rector to commit 78c7d79c4f63e046fc8d0af49315f47d380ac33f

78c7d79c4f use datetime string to avoid prefixing (#6788)
This commit is contained in:
Tomas Votruba 2025-03-17 11:32:44 +00:00
parent 7950d5a841
commit 86dd771939
3 changed files with 7 additions and 4 deletions

View File

@ -3,7 +3,6 @@
declare (strict_types=1);
namespace Rector\Naming\Rector\Class_;
use DateTime;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
@ -136,6 +135,6 @@ CODE_SAMPLE
if ($this->isName($property->type, ClassName::MOCK_OBJECT)) {
return \true;
}
return $this->isName($property->type, DateTime::class);
return $this->isName($property->type, ClassName::DATE_TIME);
}
}

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '8decc9a693522fec96cc241ce40bc00b36fa7ad9';
public const PACKAGE_VERSION = '78c7d79c4f63e046fc8d0af49315f47d380ac33f';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2025-03-17 11:26:26';
public const RELEASE_DATE = '2025-03-17 11:30:00';
/**
* @var int
*/

View File

@ -13,4 +13,8 @@ final class ClassName
* @var string
*/
public const MOCK_OBJECT = 'PHPUnit\\Framework\\MockObject\\MockObject';
/**
* @var string
*/
public const DATE_TIME = 'DateTime';
}