1 | <?php |
||||
2 | /** |
||||
3 | * Unsupported http carrier |
||||
4 | * User: moyo |
||||
5 | * Date: 27/12/2017 |
||||
6 | * Time: 11:45 AM |
||||
7 | */ |
||||
8 | |||||
9 | namespace Carno\Tracing\Chips; |
||||
10 | |||||
11 | use Carno\Tracing\Contracts\Carrier; |
||||
12 | use Carno\Tracing\Exception\UnsupportedCarrierException; |
||||
13 | use Psr\Http\Message\MessageInterface; |
||||
0 ignored issues
–
show
|
|||||
14 | |||||
15 | trait UnsupportedHTTP |
||||
16 | { |
||||
17 | public function http(MessageInterface $message) : Carrier |
||||
0 ignored issues
–
show
The parameter
$message is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||
18 | { |
||||
19 | throw new UnsupportedCarrierException('HTTP in ' . get_class($this)); |
||||
20 | } |
||||
21 | } |
||||
22 |
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