If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
39
$db->/** @scrutinizer ignore-call */
40
sqliteCreateFunction('log', 'log', 1);
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
40
$sql = '
41
INSERT INTO inverse_document_frequency (term, inverseDocumentFrequency)
42
SELECT DISTINCT term, (1+(log(:documentCount / COUNT(documentPath) + 1))) as inverseDocumentFrequency
43
FROM term_count
44
GROUP BY term
45
';
46
47
if (!$stmt = $db->prepare($sql)) {
48
$errorInfo = $db->errorInfo();
49
$errorMsg = $errorInfo[2];
50
throw new \Exception('SQLite Exception: ' . $errorMsg . ' in SQL: <br /><pre>' . $sql . '</pre>');
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.