Closed tienvx closed 1 month ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
src/PhpPact/FFI/Client.php | 17 | 22 | 77.27% | ||
<!-- | Total: | 24 | 29 | 82.76% | --> |
Totals | |
---|---|
Change from base Build 11025479316: | -0.1% |
Covered Lines: | 2325 |
Relevant Lines: | 2392 |
This is the first PR for wrapping ffi calls.
Currently,
$this->ffi->call()
and$this->ffi->get()
accept arguments of any type, and returnmixed
value. There is no type safe. And static code analyzer (phpstan
) will complain if we increase the level.This PR replace calling
$this->ffi->call('pactffi_with_multipart_file_v2')
directly by creating a new methodwithMultipartFileV2
which receive expected arguments and return expected value.