Skip to content

Commit

Permalink
cs: Autofix code style.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Sep 8, 2022
1 parent 4463a37 commit 6f1eda3
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Operation/Init.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ final class Init extends AbstractOperation
{
/**
* @return Closure(iterable<TKey, T>): Generator<TKey, T>
*
* @psalm-suppress InvalidArgument
*/
public function __invoke(): Closure
Expand Down
1 change: 1 addition & 0 deletions tests/static-analysis/append.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function append_checkMixed(CollectionInterface $collection): void
* Append will transform any Collection<string, int> into Collection<int|TKey, int>.
*
* @psalm-suppress InvalidScalarArgument
*
* @phpstan-ignore-next-line
*/
append_checkMap(Collection::fromIterable($foo)->append(3));
Expand Down
2 changes: 2 additions & 0 deletions tests/static-analysis/map.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ function map_checkMapClass(CollectionInterface $collection): void
/**
* @psalm-suppress InvalidArgument
* @psalm-suppress InvalidScalarArgument
*
* @phpstan-ignore-next-line
*/
map_checkListInt(Collection::fromIterable(['foo' => 'bar'])->map($square));
/**
* @psalm-suppress InvalidArgument
* @psalm-suppress InvalidScalarArgument
*
* @phpstan-ignore-next-line
*/
map_checkMapString(Collection::fromIterable([1, 2, 3])->map($appendBar));
1 change: 1 addition & 0 deletions tests/unit/CollectionConstructorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\collection
*/
final class CollectionConstructorsTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/CollectionGenericOperationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\collection
*/
final class CollectionGenericOperationTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/CollectionSpecificOperationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\collection
*/
final class CollectionSpecificOperationTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Iterator/PsrCacheIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\collection\Iterator
*/
final class PsrCacheIteratorTest extends TestCase
Expand Down
1 change: 1 addition & 0 deletions tests/unit/Utils/CallbacksArrayReducerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

/**
* @internal
*
* @coversDefaultClass \loophp\collection\Utils\CallbacksArrayReducer
*/
final class CallbacksArrayReducerTest extends TestCase
Expand Down

0 comments on commit 6f1eda3

Please sign in to comment.