Skip to content

Commit adfe91a

Browse files
Fix PHPStan
1 parent 78d14c1 commit adfe91a

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

src/Resolvers/TransformedDataCollectableResolver.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Spatie\LaravelData\Support\Wrapping\Wrap;
2121
use Spatie\LaravelData\Support\Wrapping\WrapExecutionType;
2222
use Spatie\LaravelData\Support\Wrapping\WrapType;
23-
use TestDataCollectionWithNested;
2423

2524
class TransformedDataCollectableResolver
2625
{
@@ -126,21 +125,7 @@ protected function transformationClosure(
126125
return $data;
127126
}
128127

129-
$clonedContext = clone $nestedContext;
130-
131-
if($data::class === TestDataCollectionWithNested::class) {
132-
ray((string) $clonedContext);
133-
}
134-
135-
$transformed = $data->transform($clonedContext);
136-
137-
if($data::class === TestDataCollectionWithNested::class) {
138-
ray($nestedContext, $clonedContext);
139-
}
140-
141-
return $transformed;
142-
143-
// return $data->transform(clone $nestedContext);
128+
return $data->transform(clone $nestedContext);
144129
};
145130
}
146131
}

0 commit comments

Comments
 (0)