File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 66
77use DateTime ;
88use FeedIo \Adapter \ClientInterface ;
9+ use FeedIo \Adapter \NullClient ;
910use FeedIo \Http \ResponseBuilder ;
1011use FeedIo \Reader \Result ;
1112use FeedIo \Rule \DateTimeBuilderInterface ;
@@ -66,13 +67,10 @@ class FeedIo
6667 protected Reader $ reader ;
6768
6869 public function __construct (
69- protected ? ClientInterface $ client = null ,
70+ protected ClientInterface $ client = new NullClient () ,
7071 protected LoggerInterface $ logger = new NullLogger (),
7172 protected ?SpecificationInterface $ specification = null ,
7273 ) {
73- if (is_null ($ client )) {
74- throw new \Exception ('You must provide an instance of FeedIo\Adapter\ClientInterface ' );
75- }
7674 if (is_null ($ this ->specification )) {
7775 $ this ->specification = new Specification ($ this ->logger );
7876 }
You can’t perform that action at this time.
0 commit comments