Skip to content

Commit 86fba50

Browse files
committed
Minor refactoring
1 parent 907858b commit 86fba50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Map.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ public function skip(int $position): Pair
109109
}
110110

111111
/**
112-
* Merge an array of values with the current Map
112+
* Returns the result of associating all keys of a given traversable object
113+
* or array with their corresponding values, as well as those of this map.
113114
*
114115
* @param array|\Traversable $values
115116
*

src/Traits/GenericSequence.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<?php
22
namespace Ds\Traits;
33

4-
use Ds\Collection;
54
use Ds\Sequence;
65
use OutOfRangeException;
76
use UnderflowException;
@@ -149,7 +148,7 @@ public function last()
149148
throw new UnderflowException();
150149
}
151150

152-
return $this->array[ count($this) - 1];
151+
return $this->array[count($this) - 1];
153152
}
154153

155154
/**

0 commit comments

Comments
 (0)