Skip to content

Commit

Permalink
chore: remove obsolete PHPDoc annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 7, 2023
1 parent 999c257 commit 0453ee3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
6 changes: 1 addition & 5 deletions tests/static-analysis/scanLeft.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
$sum = static fn (int $carry, int $value): int => $carry + $value;
$concat = static fn (string $carry, string $string): string => sprintf('%s%s', $carry, $string);
$concatWithNull = static fn (?string $carry, string $string): string => sprintf('%s%s', (string) $carry, $string);
$toString =
/**
* @param bool|string $carry
*/
static fn (bool|string $carry, int $value): string => sprintf('%s', $value);
$toString = static fn (bool|string $carry, int $value): string => sprintf('%s', $value);

/**
* @param CollectionInterface<int, int> $collection
Expand Down
6 changes: 1 addition & 5 deletions tests/static-analysis/scanLeft1.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
use loophp\collection\Contract\Collection as CollectionInterface;

$concat = static fn (string $carry, string $string): string => sprintf('%s%s', $carry, $string);
$toString =
/**
* @param int|string $carry
*/
static fn (int|string $carry, int $value): string => sprintf('%s', $value);
$toString = static fn (int|string $carry, int $value): string => sprintf('%s', $value);

/**
* @param CollectionInterface<int, string> $collection
Expand Down
6 changes: 1 addition & 5 deletions tests/static-analysis/scanRight.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
$sum = static fn (int $carry, int $value): int => $carry + $value;
$concat = static fn (string $carry, string $string): string => sprintf('%s%s', $carry, $string);
$concatWithNull = static fn (?string $carry, string $string): string => sprintf('%s%s', (string) $carry, $string);
$toString =
/**
* @param bool|string $carry
*/
static fn (bool|string $carry, int $value): string => sprintf('%s', $value);
$toString = static fn (bool|string $carry, int $value): string => sprintf('%s', $value);

/**
* @param CollectionInterface<int, int> $collection
Expand Down
6 changes: 1 addition & 5 deletions tests/static-analysis/scanRight1.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@
use loophp\collection\Contract\Collection as CollectionInterface;

$concat = static fn (string $carry, string $string): string => sprintf('%s%s', $carry, $string);
$toString =
/**
* @param int|string $carry
*/
static fn (int|string $carry, int $value): string => sprintf('%s', $value);
$toString = static fn (int|string $carry, int $value): string => sprintf('%s', $value);

/**
* @param CollectionInterface<int, string> $collection
Expand Down

0 comments on commit 0453ee3

Please sign in to comment.