Skip to content

Commit

Permalink
[5.7] Remove unecessary cast (#26162)
Browse files Browse the repository at this point in the history
* [5.7] Remove unecessary cast

* [5.7] Remove unecessary cast for already typed array variable
  • Loading branch information
carusogabriel authored and taylorotwell committed Oct 18, 2018
1 parent 392b32e commit 675fb7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ protected function parseId($value)
*/
protected function castKeys(array $keys)
{
return (array) array_map(function ($v) {
return array_map(function ($v) {
return $this->castKey($v);
}, $keys);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Support/SupportFluentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class FluentArrayIteratorStub implements IteratorAggregate

public function __construct(array $items = [])
{
$this->items = (array) $items;
$this->items = $items;
}

public function getIterator()
Expand Down

0 comments on commit 675fb7a

Please sign in to comment.