Skip to content

Commit

Permalink
fix: update interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Nov 6, 2022
1 parent 69818b3 commit 0dae4c2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ parameters:
path: src/Collection.php

-
message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed, mixed, mixed, iterable\\)\\: mixed, callable\\(T\\|V, T, TKey, Iterator\\<TKey, T\\>\\)\\: V given\\.$#"
message: "#^Parameter \\#1 \\$ of closure expects callable\\(mixed, mixed, mixed, iterable\\)\\: mixed, callable\\(T\\|V, T, TKey, Iterator\\<TKey, T\\>\\)\\: T\\|V given\\.$#"
count: 4
path: src/Collection.php

Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/FoldLeft1able.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface FoldLeft1able
*
* @template V
*
* @param callable(T|V, T, TKey, Iterator<TKey, T>): V $callback
* @param callable(T|V, T, TKey, Iterator<TKey, T>): (T|V) $callback
*
* @return T|V|null
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/FoldRight1able.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface FoldRight1able
/**
* @template V
*
* @param callable(T|V, T, TKey, Iterator<TKey, T>): V $callback
* @param callable(T|V, T, TKey, Iterator<TKey, T>): (T|V) $callback
*
* @return T|V|null
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/ScanLeft1able.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface ScanLeft1able
*
* @template V
*
* @param callable(T|V, T, TKey, Iterator<TKey, T>): V $callback
* @param callable(T|V, T, TKey, Iterator<TKey, T>): (T|V) $callback
*
* @return Collection<int|TKey, T|V>
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Contract/Operation/ScanRight1able.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface ScanRight1able
*
* @template V
*
* @param callable(T|V, T, TKey, Iterator<TKey, T>): V $callback
* @param callable(T|V, T, TKey, Iterator<TKey, T>): (T|V) $callback
*
* @return Collection<int|TKey, T|V>
*/
Expand Down

0 comments on commit 0dae4c2

Please sign in to comment.