Error:
Fatal error: Declaration of JoliCode\Slack\Api\Endpoint\ChatPostMessage::transformResponseBody(string $body, int $status, Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType) must be compatible with Jane\OpenApiRuntime\Client\EndpointTrait::transformResponseBody(string $body, int $status, Symfony\Component\Serializer\SerializerInterface $serializer, ?string $contentType = null) in vendor/jolicode/slack-php-api/generated/Endpoint/ChatPostMessage.php on line 119
PHP version: 8.1
composer.json:
{
"require": {
"automattic/woocommerce": "^3.0",
"jolicode/slack-php-api": "^3.0",
"symfony/http-client": "^5.4",
"nyholm/psr7": "^1.8",
"psr/http-client": "^1.0"
},
"config": {
"allow-plugins": {
"php-http/discovery": true
}
}
}