Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
48 | public function post(): BelongsTo |
||
49 | { |
||
50 | /** @phpstan-var class-string<\Illuminate\Database\Eloquent\Model> $postClass */ |
||
51 | $postClass = Post::class; |
||
52 | |||
53 | /** @phpstan-var \Illuminate\Database\Eloquent\Relations\BelongsTo<\Illuminate\Database\Eloquent\Model, \CSlant\Blog\Api\Models\PostView> $relation */ |
||
54 | $relation = $this->belongsTo($postClass, 'post_id'); |
||
55 | |||
56 | return $relation; |
||
57 | } |
||
59 |
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