Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Rector\TypeDeclaration\PropertyTypeInferer;

use DateTime;
use DateTimeInterface;
use Nette\Utils\Strings;
use PhpParser\Node\Stmt\Property;
use PHPStan\PhpDocParser\Ast\PhpDoc\GenericTagValueNode;
Expand Down Expand Up @@ -48,11 +48,11 @@ final class DoctrineColumnPropertyTypeInferer implements PropertyTypeInfererInte
'varbinary' => 'string',
'set' => 'string',

'date' => DateTime::class,
'datetime' => DateTime::class,
'timestamp' => DateTime::class,
'time' => DateTime::class,
'year' => DateTime::class,
'date' => DateTimeInterface::class,
'datetime' => DateTimeInterface::class,
'timestamp' => DateTimeInterface::class,
'time' => DateTimeInterface::class,
'year' => DateTimeInterface::class,
];

/**
Expand Down