Skip to content

Commit f859f27

Browse files
Fixed templates for Laravel Idea
1 parent 67d2794 commit f859f27

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

stubs/data-cast.stub

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
namespace DummyNamespace;
44

55
use Spatie\LaravelData\Casts\Cast;
6+
use Spatie\LaravelData\Support\Creation\CreationContext;
67
use Spatie\LaravelData\Support\DataProperty;
78

89
class DummyClass implements Cast
910
{
10-
public function cast(DataProperty $property, mixed $value, array $context): mixed
11+
public function cast(DataProperty $property, mixed $value, array $properties, CreationContext $context): mixed
1112
{
1213
//
1314
}

stubs/data-transformer.stub

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
namespace DummyNamespace;
44

55
use Spatie\LaravelData\Support\DataProperty;
6+
use Spatie\LaravelData\Support\Transformation\TransformationContext;
67
use Spatie\LaravelData\Transformers\Transformer;
78

89
class DummyClass implements Transformer
910
{
10-
public function transform(DataProperty $property, mixed $value): mixed
11+
public function transform(DataProperty $property, mixed $value, TransformationContext $context): mixed
1112
{
1213
//
1314
}

0 commit comments

Comments
 (0)