The type RazonYang\JSend\MessageInterface 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:
The expression return new RazonYang\JSe...UCCESS)->setData($data) returns the type RazonYang\JSend\Payload which is incompatible with the documented return type RazonYang\JSend\MessageInterface.
Loading history...
19
3
->setStatus(Status::SUCCESS)
20
3
->setData($data);
21
}
22
23
/**
24
* Generates fail payload.
25
*
26
* @param mixed $data
27
*
28
* @return MessageInterface
29
*/
30
3
public static function fail($data): PayloadInterface
The expression return new RazonYang\JSe...::FAIL)->setData($data) returns the type RazonYang\JSend\Payload which is incompatible with the documented return type RazonYang\JSend\MessageInterface.
Loading history...
33
3
->setStatus(Status::FAIL)
34
3
->setData($data);
35
}
36
37
/**
38
* Generates error payload.
39
*
40
* @param mixed $data
41
*
42
* @param string $message error message.
43
* @param int $code error code.
44
* @param mixed $data error data, i.e. stack traces.
45
*
46
* @return MessageInterface
47
*/
48
3
public static function error(string $message, ?int $code = null, $data = null): PayloadInterface
The expression return $payload returns the type RazonYang\JSend\Payload which is incompatible with the documented return type RazonYang\JSend\MessageInterface.
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