1 | <?php |
||
2 | |||
3 | /** |
||
4 | * This file is part of the sj-i/php-fuse package. |
||
5 | * |
||
6 | * (c) sji <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | declare(strict_types=1); |
||
13 | |||
14 | namespace Fuse\Libc\Fuse; |
||
15 | |||
16 | use Fuse\FFI\TypedCDataDefaultImplementationTrait; |
||
17 | use TypedCData\TypedCDataArray; |
||
0 ignored issues
–
show
|
|||
18 | use TypedCData\TypedCDataInterface; |
||
0 ignored issues
–
show
The type
TypedCData\TypedCDataInterface 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 ![]() |
|||
19 | |||
20 | /** |
||
21 | * struct fuse_bufvec |
||
22 | * { |
||
23 | * size_t count; |
||
24 | * size_t idx; |
||
25 | * size_t off; |
||
26 | * struct fuse_buf buf[1]; |
||
27 | * }; |
||
28 | */ |
||
29 | final class FuseBufVec implements TypedCDataInterface |
||
30 | { |
||
31 | use TypedCDataDefaultImplementationTrait; |
||
32 | |||
33 | public int $count; |
||
34 | public int $idx; |
||
35 | public int $off; |
||
36 | /** @var TypedCDataArray<FuseBuf> */ |
||
37 | public TypedCDataArray $buf; |
||
38 | |||
39 | /** |
||
40 | * @param int $count |
||
41 | * @param int $idx |
||
42 | * @param int $off |
||
43 | * @param TypedCDataArray<FuseBuf>|null $buf |
||
44 | */ |
||
45 | public function __construct( |
||
46 | int $count = 0, |
||
47 | int $idx = 0, |
||
48 | int $off = 0, |
||
49 | ?TypedCDataArray $buf = null |
||
50 | ) { |
||
51 | $this->count = $count; |
||
52 | $this->idx = $idx; |
||
53 | $this->off = $off; |
||
54 | /** @var \FFI\CDataArray $fuse_buf */ |
||
55 | $fuse_buf = FuseBuf::newCData(); |
||
56 | $this->buf = $buf ?? new TypedCDataArray( |
||
57 | $fuse_buf, |
||
58 | FuseBuf::class |
||
59 | ); |
||
60 | } |
||
61 | |||
62 | public static function getCTypeName(): string |
||
63 | { |
||
64 | return 'struct fuse_bufvec'; |
||
65 | } |
||
66 | } |
||
67 |
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