pact-foundation / pact-php

PHP version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project
Apache License 2.0
271 stars 92 forks source link

chore: PHPStan ignore line #580

Closed tienvx closed 4 months ago

tienvx commented 4 months ago

Ignore this error:

Cannot access offset 0|1|2|3 on FFI\CData.

For https://github.com/pact-foundation/pact-php/pull/564

tienvx commented 4 months ago

Is it possible to ignore a specific error?

Yes, it's possible, but only when PHPStan version 1.11 is released (sometime in May). The current version is 1.10.67, which is the last version of 1.10, doesn't support it.

So I use 2 solutions, and will remove the other when 1.11 is released.