Skip to content

[Bug]: OPGG\LaravelMcpServer\Data\Requests\RequestData::__construct(): Argument #3 ($id) must be of type int, string given #67

@dasuchin

Description

@dasuchin

What happened?

Attempting to set this up in an app and connect a client to it, getting this error

OPGG\LaravelMcpServer\Data\Requests\RequestData::__construct(): Argument #3 ($id) must be of type int, string given

How to reproduce the bug

No response

Package Version

1.4.2

PHP Version

8.3

Laravel Version

10.12

Which operating systems does this happen with?

No response

Notes

Pretty simple fix, just update the constructor in RequestData to accept int or string for the $id.

According to the jsonrpc, id can be int, string, or null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions