1 | <?php |
||
2 | |||
3 | namespace SilverStripe\FullTextSearch\Tests\SolrReindexQueuedTest; |
||
4 | |||
5 | use SilverStripe\Dev\TestOnly; |
||
6 | use Symbiote\QueuedJobs\Services\QueuedJob; |
||
0 ignored issues
–
show
|
|||
7 | use Symbiote\QueuedJobs\Services\QueuedJobService; |
||
0 ignored issues
–
show
The type
Symbiote\QueuedJobs\Services\QueuedJobService 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
8 | |||
9 | if (!class_exists(QueuedJobService::class)) { |
||
10 | return; |
||
11 | } |
||
12 | |||
13 | class SolrReindexQueuedTest_Service extends QueuedJobService implements TestOnly |
||
14 | { |
||
15 | private static $dependencies = [ |
||
0 ignored issues
–
show
|
|||
16 | 'queueHandler' => '%$QueueHandler' |
||
17 | ]; |
||
18 | |||
19 | /** |
||
20 | * @return QueuedJob |
||
21 | */ |
||
22 | public function getNextJob() |
||
23 | { |
||
24 | $job = $this->getNextPendingJob(); |
||
25 | return $this->initialiseJob($job); |
||
26 | } |
||
27 | } |
||
28 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths