Issues (11)

src/Extensions/DataObjectExtension.php (1 issue)

1
<?php
2
/**
3
 * Class FulltextSearchExtension|Firesphere\SolrCompatibility\Extensions\DataObjectExtension provide help for
4
 * migrating from the old module
5
 *
6
 * @package Firesphere\Solr\Compatibility
7
 * @author Simon `Firesphere` Erkelens; Marco `Sheepy` Hermo
8
 * @copyright Copyright (c) 2018 - now() Firesphere & Sheepy
9
 */
10
11
12
namespace Firesphere\SolrCompatibility\Extensions;
13
14
use SilverStripe\Core\Extension;
15
use SilverStripe\ORM\DataObject;
16
17
/**
18
 * Class \Firesphere\SolrCompatibility\Extensions\DataObjectExtension
19
 *
20
 * @property DataObject|DataObjectExtension $owner
21
 */
22
class DataObjectExtension extends Extension
23
{
24
    /**
25
     * Stub for triggering a reindex of the owner
26
     */
27
    public function triggerReindex()
28
    {
29
        $this->owner->doReindex();
0 ignored issues
show
The method doReindex() does not exist on Firesphere\SolrCompatibi...ons\DataObjectExtension. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
        $this->owner->/** @scrutinizer ignore-call */ 
30
                      doReindex();

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...
30
    }
31
}
32