How to fix PHPStan error if I want to use an array as callback function for a tool? #64
Answered
by
ilvalerione
robiningelbrecht
asked this question in
Q&A
Replies: 1 comment
-
->setCallable(fn() => call_user_func([$this, 'getUserWorkout'])) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robiningelbrecht
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have this code in place. Tis should be a valid callback right?

PHPstan then throws this error which makes sense):

any idea how this can be fixed?
Beta Was this translation helpful? Give feedback.
All reactions