Skip to content

Commit

Permalink
style: Remove unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Jan 14, 2024
1 parent 560ae69 commit 819cc47
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* feat: More useful `TransformerReturnsUnexpectedValueException` exception message.
* feat: If a transformer throws `RefuseToHandleException`, the `MainTransformer`
will try the next suitable transformer.
* style: Remove unused vars.

## 0.5.8

Expand Down
4 changes: 0 additions & 4 deletions src/Transformer/TraversableToArrayAccessTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ public function transform(
throw new InvalidArgumentException('Target type must not be null.', context: $context);
}

// get object cache

$objectCache = $context->get(ObjectCache::class);

// The source must be a Traversable or an array (a.k.a. iterable).

if (!$source instanceof \Traversable && !is_array($source)) {
Expand Down
3 changes: 0 additions & 3 deletions src/Transformer/TraversableToTraversableTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public function transform(
if ($targetType === null) {
throw new InvalidArgumentException('Target type must not be null.', context: $context);
}
// get object cache

$objectCache = $context->get(ObjectCache::class);

// The source must be a Traversable or an array (a.k.a. iterable).

Expand Down

0 comments on commit 819cc47

Please sign in to comment.