It seems like handleExceptionsAsQueryExceptions() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
24
return $this->/** @scrutinizer ignore-call */ handleExceptionsAsQueryExceptions(function () use ($name) {
Loading history...
25
2
return $this->schemaManager->hasGraph($name);
26
2
});
27
}
28
29
/**
30
* @throws ArangoException
31
*/
32
public function getGraph(string $name): \stdClass
33
{
34
return $this->schemaManager->getGraph($name);
35
}
36
37
/**
38
* @throws ArangoException
39
*/
40
8
public function getGraphs(): array
41
{
42
8
return $this->schemaManager->getGraphs();
43
}
44
45
/**
46
* @throws ArangoException
47
*/
48
1
public function dropGraph(string $name)
49
{
50
1
$this->schemaManager->deleteGraph($name);
51
}
52
53
/**
54
* @throws ArangoException
55
*/
56
2
public function dropGraphIfExists(string $name): bool