This commit is contained in:
icefox 2026-02-18 20:18:39 -03:00
parent bef42b3352
commit afb47c1977
No known key found for this signature in database
7 changed files with 56 additions and 26 deletions

View file

@ -5,7 +5,7 @@ declare(strict_types=1);
namespace Tests\Classes;
use Carbon\CarbonPeriodImmutable;
use Icefox\DTO\Attributes\FromMapper;
use Icefox\DTO\Attributes\CastWith;
use Icefox\DTO\DataObject;
readonly class WithMapperObject
@ -13,7 +13,7 @@ readonly class WithMapperObject
use DataObject;
public function __construct(
#[FromMapper(CarbonPeriodMapper::class)]
#[CastWith(CarbonPeriodMapper::class)]
public CarbonPeriodImmutable $period,
) {}
}