The type React\Promise\PromiseInterface 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:
It seems like addToAssertionCount() 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
20
$this->/** @scrutinizer ignore-call */
21
addToAssertionCount(1);
Loading history...
21
22
6
if (is_array($promise)) {
23
2
$promise = all($promise);
24
}
25
26
try {
27
6
$result = null;
28
6
Loop::run(function () use (&$result, $promise) {
29
5
$result = yield call(function () use ($promise) {
30
5
return $promise;
31
});
32
});
33
2
} catch (Exception $e) {
34
2
$this->fail('Failed asserting that promise fulfills. Promise was rejected: ' . $e->getMessage());
It seems like assertTrue() 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
It seems like assertSame() 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
43
$this->/** @scrutinizer ignore-call */
44
assertSame(
Loading history...
44
$expectedValue,
45
$result,
46
'Failed asserting that promise fulfills with a specified value.'
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