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: Fix variable not callable #579

Closed tienvx closed 4 months ago

tienvx commented 4 months ago

Fix these errors:

  201    Parameter #1 $callback of method                                                 
         PhpPact\Consumer\MessageBuilder::verifyMessage() expects callable(): mixed,      
         PHPUnit\Framework\MockObject\MockObject&stdClass given.                          
  225    Parameter #1 $callback of method PhpPact\Consumer\MessageBuilder::setCallback()  
         expects callable(): mixed, PHPUnit\Framework\MockObject\MockObject&stdClass      
         given.

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