for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace sonrac\Arango\Query\Processors;
use ArangoDBClient\Document;
use Illuminate\Database\Query\Builder;
use Illuminate\Database\Query\Processors\Processor as IlluminateProcessor;
class Processor extends IlluminateProcessor
{
/**
* {@inheritdoc}
*/
public function processInsertGetId(Builder $query, $sql, $values, $sequence = null)
$result = $query->getConnection()->insert($sql, $values);
$document = $result->getAll()[0];
getAll
$result
boolean
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.
/* @var Document $document */
return $document->getKey();
}
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.