1 | <?php |
||
2 | |||
3 | namespace Drupal\graphql\GraphQL\Buffers; |
||
4 | |||
5 | use Drupal\Core\Cache\RefinableCacheableDependencyInterface; |
||
0 ignored issues
–
show
|
|||
6 | use Drupal\Core\Cache\RefinableCacheableDependencyTrait; |
||
0 ignored issues
–
show
The type
Drupal\Core\Cache\Refina...acheableDependencyTrait 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 ![]() |
|||
7 | use Symfony\Component\HttpFoundation\Response; |
||
0 ignored issues
–
show
The type
Symfony\Component\HttpFoundation\Response 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 | class SubRequestResponse extends Response implements RefinableCacheableDependencyInterface { |
||
10 | use RefinableCacheableDependencyTrait; |
||
11 | |||
12 | /** |
||
13 | * The request result. |
||
14 | * |
||
15 | * @var array |
||
16 | */ |
||
17 | protected $result; |
||
18 | |||
19 | /** |
||
20 | * SubrequestResponse constructor. |
||
21 | * |
||
22 | * @param array $result |
||
23 | * The request result. |
||
24 | * @param int $status |
||
25 | * The response status code. |
||
26 | * @param array $headers |
||
27 | * An array of response headers. |
||
28 | */ |
||
29 | public function __construct(array $result, $status = 200, array $headers = []) { |
||
30 | parent::__construct('', $status, $headers); |
||
31 | $this->result = $result; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Gets the request result. |
||
36 | * |
||
37 | * @return array |
||
38 | * The request result. |
||
39 | */ |
||
40 | public function getResult() { |
||
41 | return $this->result; |
||
42 | } |
||
43 | |||
44 | } |
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