mirror of
https://github.com/rectorphp/rector.git
synced 2025-03-18 22:39:44 +01:00
Updated Rector to commit 78c7d79c4f63e046fc8d0af49315f47d380ac33f
78c7d79c4f
use datetime string to avoid prefixing (#6788)
This commit is contained in:
parent
7950d5a841
commit
86dd771939
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
*/
|
||||
|
@ -13,4 +13,8 @@ final class ClassName
|
||||
* @var string
|
||||
*/
|
||||
public const MOCK_OBJECT = 'PHPUnit\\Framework\\MockObject\\MockObject';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public const DATE_TIME = 'DateTime';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user