jobtech-dev /
laravel-chunky
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Jobtech\LaravelChunky\Http\Resources; |
||
| 4 | |||
| 5 | use Illuminate\Http\Resources\Json\JsonResource; |
||
|
0 ignored issues
–
show
|
|||
| 6 | |||
| 7 | class ChunkResource extends JsonResource |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Transform the resource into an array. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Http\Request $request |
||
|
0 ignored issues
–
show
The type
Illuminate\Http\Request 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 Loading history...
|
|||
| 13 | * |
||
| 14 | * @return array |
||
| 15 | */ |
||
| 16 | public function toArray($request) |
||
| 17 | { |
||
| 18 | return $this->resource->toArray(); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |
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