It seems like getConfig() 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
22
$this->/** @scrutinizer ignore-call */
23
getConfig()->path($path, $type);
Loading history...
23
}
24
25
/**
26
* Register a custom migration path.
27
*
28
* @param string $path
29
* @param string $type
30
*/
31
public function setPath($path, $type = 'migrations')
32
{
33
$this->getConfig()->setPath($path, $type);
34
}
35
36
/**
37
* Get all of the custom migration paths.
38
*
39
* @param string $type
40
* @return array
41
*/
42
1
public function paths($type = 'migrations')
43
{
44
1
return $this->getConfig()->paths($type);
45
}
46
47
/**
48
* @param string $type
49
*/
50
protected function initPaths($type = 'migrations')