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:
parent
079747d478
commit
6698a36ff8
@ -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;
|
||||
}
|
||||
|
@ -1,10 +1,9 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace JsonMachine;
|
||||
|
||||
use JsonMachine\GeneratorAggregate;
|
||||
|
||||
class GeneratorAggregateWrapper implements GeneratorAggregate
|
||||
{
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -4,9 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace JsonMachineTest;
|
||||
|
||||
use Iterator;
|
||||
use IteratorAggregate;
|
||||
use JsonMachine\GeneratorAggregate;
|
||||
use JsonMachine\GeneratorAggregateWrapper;
|
||||
use JsonMachine\RecursiveItems;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user