Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/store/src/Document/Loader/InMemoryLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
) {
}

public function load(?string $source, array $options = []): iterable
public function load(?string $source = null, array $options = []): iterable
{
yield from $this->documents;
}
Expand Down
2 changes: 1 addition & 1 deletion src/store/src/Document/Loader/RssFeedLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
/**
* @param array{uuid_namespace?: string} $options
*/
public function load(?string $source, array $options = []): iterable
public function load(?string $source = null, array $options = []): iterable
{
if (!class_exists(Crawler::class)) {
throw new RuntimeException('For using the RSS loader, the Symfony DomCrawler component is required. Try running "composer require symfony/dom-crawler".');
Expand Down
2 changes: 1 addition & 1 deletion src/store/src/Document/Loader/TextFileLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/
final class TextFileLoader implements LoaderInterface
{
public function load(?string $source, array $options = []): iterable
public function load(?string $source = null, array $options = []): iterable
{
if (null === $source) {
throw new InvalidArgumentException('TextFileLoader requires a file path as source, null given.');
Expand Down
2 changes: 1 addition & 1 deletion src/store/src/Document/LoaderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ interface LoaderInterface
*
* @return iterable<EmbeddableDocumentInterface> iterable of embeddable documents loaded from the source
*/
public function load(?string $source, array $options = []): iterable;
public function load(?string $source = null, array $options = []): iterable;
}