1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-29 10:28:09 +01:00

make cs-fix

This commit is contained in:
Filip Halaxa 2024-11-25 13:30:27 +01:00
parent 079747d478
commit 6698a36ff8
4 changed files with 4 additions and 12 deletions

View File

@ -73,8 +73,5 @@ trait FacadeTrait
*/
abstract public static function fromStream($stream, array $options = []): self;
/**
* @param iterable $iterable
*/
abstract public static function fromIterable($iterable, array $options = []): self;
abstract public static function fromIterable(iterable $iterable, array $options = []): self;
}

View File

@ -1,10 +1,9 @@
<?php declare(strict_types=1);
<?php
declare(strict_types=1);
namespace JsonMachine;
use JsonMachine\GeneratorAggregate;
class GeneratorAggregateWrapper implements GeneratorAggregate
{
/**

View File

@ -56,11 +56,9 @@ final class Items implements \IteratorAggregate, PositionAware
}
/**
* @param iterable $iterable
*
* @throws Exception\InvalidArgumentException
*/
public static function fromIterable($iterable, array $options = []): self
public static function fromIterable(iterable $iterable, array $options = []): self
{
return new self(new GeneratorAggregateWrapper($iterable), $options);
}

View File

@ -4,9 +4,7 @@ declare(strict_types=1);
namespace JsonMachineTest;
use Iterator;
use IteratorAggregate;
use JsonMachine\GeneratorAggregate;
use JsonMachine\GeneratorAggregateWrapper;
use JsonMachine\RecursiveItems;