Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure you want to rename?
SAFE MODE
/
application
/
vendor
/
nesbot
/
carbon
/
src
/
Carbon
/
Doctrine
:
DateTimeImmutableType.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Thanks to https://github.com/flaushi for his suggestion: * https://github.com/doctrine/dbal/issues/2873#issuecomment-534956358 */ namespace Carbon\Doctrine; use Carbon\CarbonImmutable; use Doctrine\DBAL\Types\VarDateTimeImmutableType; class DateTimeImmutableType extends VarDateTimeImmutableType implements CarbonDoctrineType { /** @use CarbonTypeConverter<CarbonImmutable> */ use CarbonTypeConverter; /** * @return class-string<CarbonImmutable> */ protected function getCarbonClassName(): string { return CarbonImmutable::class; } }