Skip to content

Commit

Permalink
Merge branch 'main' into sanmai-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai authored Oct 17, 2024
2 parents a8ad489 + 393f470 commit 3c57ae1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

namespace Pipeline;

function map(callable $func = null): Standard
function map(?callable $func = null): Standard
{
$pipeline = new Standard();

Expand All @@ -30,7 +30,7 @@ function map(callable $func = null): Standard
return $pipeline->map($func);
}

function take(iterable $input = null, iterable ...$inputs): Standard
function take(?iterable $input = null, iterable ...$inputs): Standard
{
$pipeline = new Standard($input);

Expand Down
1 change: 0 additions & 1 deletion tests/EachTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
use LogicException;
use PHPUnit\Framework\TestCase;
use Pipeline\Standard;

use ArrayIterator;

use function Pipeline\map;
Expand Down
2 changes: 1 addition & 1 deletion tests/StaticAnalysisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function testAllMethodsArePublicOrPrivate(ReflectionMethod $method): void
*/
public function testInterfaceCompatibilityPHP71(): void
{
$example = new class () extends Standard {
$example = new class extends Standard {
private $input;

public function __construct(iterable $input = null)
Expand Down
1 change: 0 additions & 1 deletion tests/TuplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

use ArrayIterator;
use PHPUnit\Framework\TestCase;

use Pipeline\Standard;
use IteratorIterator;

Expand Down

0 comments on commit 3c57ae1

Please sign in to comment.