for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Manticoresearch\Response;
use Manticoresearch\Response;
class Sql extends Response
{
public function getResponse()
$response = parent::getResponse();
// workaround for the change in Manticore Search made in 4.2.1, after
// which any query in mode=raw returns an array
if (is_array($response)
and count($response) === 1
and isset($response[0]['total'], $response[0]['error'], $response[0]['warning'])) {
foreach ($response[0] as $k => $v) {
$response[$k] = $v;
}
unset($response[0]);
return $response;