Because ResultPager::get() here returns the return value of ResponseMediator::getContent(), it can occasionally return a string, which causes an unhelpful TypeError since it should only ever return an array. Other usages of ResponseMediator::getContent() allow for this, but the ResultPager one does not.
This has been occurring in practice to us so figured I'd raise it here - let me know any other information you need on this issue, it is my first one!
Because
ResultPager::get()here returns the return value ofResponseMediator::getContent(), it can occasionally return a string, which causes an unhelpful TypeError since it should only ever return an array. Other usages ofResponseMediator::getContent()allow for this, but theResultPagerone does not.This has been occurring in practice to us so figured I'd raise it here - let me know any other information you need on this issue, it is my first one!