sj-i /
php-fuse
| 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\Time; |
||
| 15 | |||
| 16 | use Fuse\FFI\TypedCDataDefaultImplementationTrait; |
||
| 17 | use TypedCData\TypedCDataInterface; |
||
|
0 ignored issues
–
show
|
|||
| 18 | |||
| 19 | /** |
||
| 20 | * struct timespec |
||
| 21 | * { |
||
| 22 | * long tv_sec; |
||
| 23 | * long tv_nsec; |
||
| 24 | * }; |
||
| 25 | */ |
||
| 26 | final class TimeSpec implements TypedCDataInterface |
||
| 27 | { |
||
| 28 | use TypedCDataDefaultImplementationTrait; |
||
| 29 | |||
| 30 | public int $tv_sec = 0; |
||
| 31 | public int $tv_nsec = 0; |
||
| 32 | |||
| 33 | public static function getCTypeName(): string |
||
| 34 | { |
||
| 35 | return 'struct timespec'; |
||
| 36 | } |
||
| 37 | |||
| 38 | public function __construct(int $tv_sec = 0, int $tv_nsec = 0) |
||
| 39 | { |
||
| 40 | $this->tv_sec = $tv_sec; |
||
| 41 | $this->tv_nsec = $tv_nsec; |
||
| 42 | } |
||
| 43 | } |
||
| 44 |
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