Skip to content

Commit

Permalink
Fix redundant type casts
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyweb committed Nov 29, 2021
1 parent a029b3a commit c29306c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cloner/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function __toString()
public function withMaxDepth(int $maxDepth)
{
$data = clone $this;
$data->maxDepth = (int) $maxDepth;
$data->maxDepth = $maxDepth;

return $data;
}
Expand All @@ -220,7 +220,7 @@ public function withMaxDepth(int $maxDepth)
public function withMaxItemsPerDepth(int $maxItemsPerDepth)
{
$data = clone $this;
$data->maxItemsPerDepth = (int) $maxItemsPerDepth;
$data->maxItemsPerDepth = $maxItemsPerDepth;

return $data;
}
Expand Down

0 comments on commit c29306c

Please sign in to comment.