Skip to content

Fatal error: Declaration of ChatPostMessage::transformResponseBody() must be compatible with Jane\OpenApiRuntime\Client\EndpointTrait #158

Description

@GigiCooper

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
        }
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions