Skip to content

Commit

Permalink
Update PSalm and PHPStan baselines.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jun 24, 2021
1 parent defb903 commit 58d8035
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 183 deletions.
6 changes: 1 addition & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Parameter \\#1 \\.\\.\\.\\$callbacks of method loophp\\\\collection\\\\Collection\\<int,string\\>\\:\\:map\\(\\) expects callable\\(string, int, Iterator\\<int, string\\>\\)\\: mixed, Closure\\(array\\)\\: string given\\.$#"
count: 1
path: docs/pages/code/operations/since.php

-
message: "#^Anonymous function with return type void returns void but should not return anything\\.$#"
count: 2
Expand Down Expand Up @@ -34,3 +29,4 @@ parameters:
message: "#^Foreach overwrites \\$value with its value variable\\.$#"
count: 1
path: src/Operation/Unwindow.php

179 changes: 1 addition & 178 deletions psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,182 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="4.7.2@83a0325c0a95c0ab531d6b90c877068b464377b5">
<file src="src/Collection.php">
<InvalidArgument occurrences="1">
<code>$this-&gt;source</code>
</InvalidArgument>
<InvalidReturnStatement occurrences="79">
<code>new self(Apply::of()(...$callables), $this-&gt;getIterator())</code>
<code>new self(Associate::of()($callbackForKeys ?? $defaultCallback)($callbackForValues ?? $defaultCallback), $this-&gt;getIterator())</code>
<code>new self(AsyncMap::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Cache::of()($cache ?? new ArrayAdapter()), $this-&gt;getIterator())</code>
<code>new self(Coalesce::of(), $this-&gt;getIterator())</code>
<code>new self(Collapse::of(), $this-&gt;getIterator())</code>
<code>new self(Column::of()($column), $this-&gt;getIterator())</code>
<code>new self(Combinate::of()($length), $this-&gt;getIterator())</code>
<code>new self(Combine::of()(...$keys), $this-&gt;getIterator())</code>
<code>new self(Compact::of()(...$values), $this-&gt;getIterator())</code>
<code>new self(Cycle::of(), $this-&gt;getIterator())</code>
<code>new self(Diff::of()(...$values), $this-&gt;getIterator())</code>
<code>new self(DiffKeys::of()(...$values), $this-&gt;getIterator())</code>
<code>new self(Distinct::of(), $this-&gt;getIterator())</code>
<code>new self(Drop::of()(...$counts), $this-&gt;getIterator())</code>
<code>new self(DropWhile::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Dump::of()($name)($size)($closure), $this-&gt;getIterator())</code>
<code>new self(Duplicate::of(), $this-&gt;getIterator())</code>
<code>new self(Every::of()(static fn (): bool =&gt; false)(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Filter::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(First::of(), $this-&gt;getIterator())</code>
<code>new self(Flatten::of()($depth), $this-&gt;getIterator())</code>
<code>new self(Flip::of(), $this-&gt;getIterator())</code>
<code>new self(FoldLeft1::of()($callback), $this-&gt;getIterator())</code>
<code>new self(FoldLeft::of()($callback)($initial), $this-&gt;getIterator())</code>
<code>new self(FoldRight1::of()($callback), $this-&gt;getIterator())</code>
<code>new self(Foldright::of()($callback)($initial), $this-&gt;getIterator())</code>
<code>new self(Forget::of()(...$keys), $this-&gt;getIterator())</code>
<code>new self(Frequency::of(), $this-&gt;getIterator())</code>
<code>new self(Get::of()($key)($default), $this-&gt;getIterator())</code>
<code>new self(Group::of(), $this-&gt;getIterator())</code>
<code>new self(GroupBy::of()($callable), $this-&gt;getIterator())</code>
<code>new self(Head::of(), $this-&gt;getIterator())</code>
<code>new self(IfThenElse::of()($condition)($then)($else ?? $identity), $this-&gt;getIterator())</code>
<code>new self(Init::of(), $this-&gt;getIterator())</code>
<code>new self(Inits::of(), $this-&gt;getIterator())</code>
<code>new self(Intersect::of()(...$values), $this-&gt;getIterator())</code>
<code>new self(IntersectKeys::of()(...$values), $this-&gt;getIterator())</code>
<code>new self(Intersperse::of()($element)($every)($startAt), $this-&gt;getIterator())</code>
<code>new self(Last::of(), $this-&gt;getIterator())</code>
<code>new self(Limit::of()($count)($offset), $this-&gt;getIterator())</code>
<code>new self(Lines::of(), $this-&gt;getIterator())</code>
<code>new self(Map::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Merge::of()(...$sources), $this-&gt;getIterator())</code>
<code>new self(Nth::of()($step)($offset), $this-&gt;getIterator())</code>
<code>new self(Pair::of(), $this-&gt;getIterator())</code>
<code>new self(Permutate::of(), $this-&gt;getIterator())</code>
<code>new self(Pipe::of()(...$callables), $this-&gt;getIterator())</code>
<code>new self(Pluck::of()($pluck)($default), $this-&gt;getIterator())</code>
<code>new self(Product::of()(...$iterables), $this-&gt;getIterator())</code>
<code>new self(RSample::of()($probability), $this-&gt;getIterator())</code>
<code>new self(Random::of()($seed ?? random_int(PHP_INT_MIN, PHP_INT_MAX))($size), $this-&gt;getIterator())</code>
<code>new self(Reduction::of()($callback)($initial), $this-&gt;getIterator())</code>
<code>new self(Reverse::of(), $this-&gt;getIterator())</code>
<code>new self(Scale::of()($lowerBound)($upperBound)($wantedLowerBound)($wantedUpperBound)($base), $this-&gt;getIterator())</code>
<code>new self(ScanLeft1::of()($callback), $this-&gt;getIterator())</code>
<code>new self(ScanLeft::of()($callback)($initial), $this-&gt;getIterator())</code>
<code>new self(ScanRight1::of()($callback), $this-&gt;getIterator())</code>
<code>new self(ScanRight::of()($callback)($initial), $this-&gt;getIterator())</code>
<code>new self(Shuffle::of()($seed ?? random_int(PHP_INT_MIN, PHP_INT_MAX)), $this-&gt;getIterator())</code>
<code>new self(Since::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Slice::of()($offset)($length), $this-&gt;getIterator())</code>
<code>new self(Sort::of()($type)($callback), $this-&gt;getIterator())</code>
<code>new self(Span::of()($callback), $this-&gt;getIterator())</code>
<code>new self(Split::of()($type)(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Tail::of(), $this-&gt;getIterator())</code>
<code>new self(TakeWhile::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Transpose::of(), $this-&gt;getIterator())</code>
<code>new self(Unlines::of(), $this-&gt;getIterator())</code>
<code>new self(Unpack::of(), $this-&gt;getIterator())</code>
<code>new self(Until::of()(...$callbacks), $this-&gt;getIterator())</code>
<code>new self(Unwindow::of(), $this-&gt;getIterator())</code>
<code>new self(Unwords::of(), $this-&gt;getIterator())</code>
<code>new self(Unwrap::of(), $this-&gt;getIterator())</code>
<code>new self(Unzip::of(), $this-&gt;getIterator())</code>
<code>new self(Window::of()($size), $this-&gt;getIterator())</code>
<code>new self(Words::of(), $this-&gt;getIterator())</code>
<code>new self(Zip::of()(...$iterables), $this-&gt;getIterator())</code>
<code>self::empty()-&gt;pipe(Unfold::of()(...$parameters)($callback))</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="79">
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
<code>CollectionInterface</code>
</InvalidReturnType>
</file>
<file src="src/Contract/Operation/Associateable.php">
<InvalidTemplateParam occurrences="1">
<code>\loophp\collection\Collection&lt;TKey|T, T|TKey&gt;</code>
</InvalidTemplateParam>
</file>
<file src="src/Contract/Operation/Pairable.php">
<InvalidTemplateParam occurrences="1">
<code>\loophp\collection\Collection&lt;T|TKey, T&gt;</code>
</InvalidTemplateParam>
</file>
<files psalm-version="4.8.1@f73f2299dbc59a3e6c4d66cff4605176e728ee69">
<file src="src/Iterator/RandomIterator.php">
<PossiblyNullArrayOffset occurrences="1">
<code>$this-&gt;indexes</code>
Expand Down

0 comments on commit 58d8035

Please sign in to comment.