Add docblocks for phpstan tests

This commit is contained in:
Dennis Eichhorn 2018-09-12 21:32:59 +02:00
parent 1bf1e6da3b
commit efb6421289

View File

@ -202,6 +202,7 @@ class MultiMap implements \Countable
{
if (\is_array($key)) {
if ($this->orderType === OrderType::LOOSE) {
/** @var array<array<string>> $keys */
$keys = Permutation::permut($key, [], false);
foreach ($keys as $key => $value) {
@ -251,6 +252,7 @@ class MultiMap implements \Countable
private function setMultiple($key, $value) : bool
{
if ($this->orderType !== OrderType::STRICT) {
/** @var array<array<string>> $permutation */
$permutation = Permutation::permut($key, [], false);
foreach ($permutation as $permut) {
@ -317,6 +319,7 @@ class MultiMap implements \Countable
return $this->remove(\implode(':', $key));
}
/** @var array $keys */
$keys = Permutation::permut($key, [], false);
$found = false;