These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | use Spatie\Fractalistic\FractalFunctionHelper; |
||
4 | |||
5 | if (! function_exists('fractal')) { |
||
6 | /** |
||
7 | * @param null|mixed $data |
||
0 ignored issues
–
show
|
|||
8 | * @param null|callable|\League\Fractal\TransformerAbstract $transformer |
||
0 ignored issues
–
show
There is no parameter named
$transformer . Was it maybe removed?
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. Consider the following example. The parameter /**
* @param array $germany
* @param array $island
* @param array $italy
*/
function finale($germany, $island) {
return "2:1";
}
The most likely cause is that the parameter was removed, but the annotation was not. ![]() |
|||
9 | * @param null|\League\Fractal\Serializer\SerializerAbstract $serializer |
||
0 ignored issues
–
show
There is no parameter named
$serializer . Was it maybe removed?
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. Consider the following example. The parameter /**
* @param array $germany
* @param array $island
* @param array $italy
*/
function finale($germany, $island) {
return "2:1";
}
The most likely cause is that the parameter was removed, but the annotation was not. ![]() |
|||
10 | * |
||
11 | * @return \Spatie\Fractalistic\Fractal |
||
12 | */ |
||
13 | function fractal() |
||
14 | { |
||
15 | $fractalFunctionHelper = new FractalFunctionHelper(func_get_args()); |
||
16 | |||
17 | return $fractalFunctionHelper->getFractalInstance(); |
||
18 | } |
||
19 | } |
||
20 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.