1) Nawarian\ArchiveOrg\Test\ClientTest::testClientFetchesMetadata
TypeError: Argument 3 passed to Nawarian\ArchiveOrg\Item\Metadata::__construct() must be of the type string, array given, called in /Coding/archive-org-client/src/Client.php on line 18
The [likely rudimentary] fix I've found is that within Client.php, make sure that the new instance of Metadata returns the first item in the collection array:
return new Metadata(
$metadata['identifier'],
$metadata['publicdate'],
$metadata['collection'][0]
Error:
Info from archive.org
The [likely rudimentary] fix I've found is that within Client.php, make sure that the new instance of
Metadata
returns the first item in the collection array: