mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-05 03:58:43 +00:00
Add docblocks for phpstan tests
This commit is contained in:
parent
1bf1e6da3b
commit
efb6421289
|
|
@ -202,6 +202,7 @@ class MultiMap implements \Countable
|
||||||
{
|
{
|
||||||
if (\is_array($key)) {
|
if (\is_array($key)) {
|
||||||
if ($this->orderType === OrderType::LOOSE) {
|
if ($this->orderType === OrderType::LOOSE) {
|
||||||
|
/** @var array<array<string>> $keys */
|
||||||
$keys = Permutation::permut($key, [], false);
|
$keys = Permutation::permut($key, [], false);
|
||||||
|
|
||||||
foreach ($keys as $key => $value) {
|
foreach ($keys as $key => $value) {
|
||||||
|
|
@ -251,6 +252,7 @@ class MultiMap implements \Countable
|
||||||
private function setMultiple($key, $value) : bool
|
private function setMultiple($key, $value) : bool
|
||||||
{
|
{
|
||||||
if ($this->orderType !== OrderType::STRICT) {
|
if ($this->orderType !== OrderType::STRICT) {
|
||||||
|
/** @var array<array<string>> $permutation */
|
||||||
$permutation = Permutation::permut($key, [], false);
|
$permutation = Permutation::permut($key, [], false);
|
||||||
|
|
||||||
foreach ($permutation as $permut) {
|
foreach ($permutation as $permut) {
|
||||||
|
|
@ -317,6 +319,7 @@ class MultiMap implements \Countable
|
||||||
return $this->remove(\implode(':', $key));
|
return $this->remove(\implode(':', $key));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var array $keys */
|
||||||
$keys = Permutation::permut($key, [], false);
|
$keys = Permutation::permut($key, [], false);
|
||||||
$found = false;
|
$found = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user