Passed
Push — master ( fefd78...3cca91 )
by Robbie
04:31 queued 02:37
created

SearchManipulateCapture_PostgreSQLDatabase.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace SilverStripe\FullTextSearch\Search\Captures;
4
5
use SilverStripe\PostgreSQL\PostgreSQLDatabase;
0 ignored issues
show
The type SilverStripe\PostgreSQL\PostgreSQLDatabase was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
use SilverStripe\FullTextSearch\Search\Updaters\SearchUpdater;
7
8
if (!class_exists(PostgreSQLDatabase::class)) {
9
    return;
10
}
11
12
/**
13
 * @deprecated 3.1...4.0 Please use tractorcow/silverstripe-proxy-db to proxy the database connector instead
14
 */
15
16
class SearchManipulateCapture_PostgreSQLDatabase extends PostgreSQLDatabase
17
{
18
    public $isManipulationCapture = true;
19
20
    public function manipulate($manipulation)
21
    {
22
        $res = parent::manipulate($manipulation);
23
        SearchUpdater::handle_manipulation($manipulation);
24
        return $res;
25
    }
26
}
27