deprecated: try to magically resolve constructor

This commit is contained in:
icefox 2026-02-18 19:32:14 -03:00
parent aa7b062b29
commit bef42b3352
No known key found for this signature in database
3 changed files with 6 additions and 9 deletions

View file

@ -4,8 +4,8 @@ declare(strict_types=1);
namespace Tests\Classes;
use Carbon\Carbon;
use Icefox\DTO\DataObject;
use Illuminate\Support\Carbon;
readonly class ObjectWithoutMapper
{

View file

@ -198,11 +198,6 @@ test('failed validation throws ValidationException', function () {
})->throws(ValidationException::class);
test('tries to resolve without mapper', function () {
$object = ObjectWithoutMapper::fromArray(['date' => '1990-04-01']);
expect($object->date->isSameDay('1990-04-01'))->toBeTrue();
})->group('object-without-mapper');
test('creates collection', function () {
$object = CollectionDataObject::fromArray([
'values' => [