Latest PHRets release converting response to any format doesnt work

78 views
Skip to first unread message

Nathan Mackenzie

unread,
Mar 28, 2023, 10:21:44 AM3/28/23
to PHRETS
I can successfully query the rets feed and return a record however I cannot access any of the properties nor can i convert it to a format and save to file enven using the example in the docs. Any ideas?

Nathan Mackenzie

unread,
Mar 28, 2023, 10:40:31 AM3/28/23
to PHRETS
In addition also getting 

PHP Deprecated:  Return type of PHRETS\Models\Search\Results::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 297

Deprecated: Return type of PHRETS\Models\Search\Results::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 297
PHP Deprecated:  Return type of PHRETS\Models\Search\Results::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 259

Deprecated: Return type of PHRETS\Models\Search\Results::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 259
PHP Deprecated:  Return type of PHRETS\Models\Search\Results::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 268

Deprecated: Return type of PHRETS\Models\Search\Results::offsetGet($offset) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 268
PHP Deprecated:  Return type of PHRETS\Models\Search\Results::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 277

Deprecated: Return type of PHRETS\Models\Search\Results::offsetSet($offset, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 277
PHP Deprecated:  Return type of PHRETS\Models\Search\Results::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 289

Deprecated: Return type of PHRETS\Models\Search\Results::offsetUnset($offset) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 289
PHP Deprecated:  Return type of PHRETS\Models\Search\Results::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /vendor/troydavisson/phrets/src/Models/Search/Results.php on line 250

Deprecated: Return type of PHRETS\Models\Search\Results::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/troydavisson/phrets/src/Models/Search/Results.php on line 250

Reply all
Reply to author
Forward
0 new messages