You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're testing route middleware with laravel-test-assertions. To make this more Pest friendly, I rewrote the assertRouteUsesMiddleware method into an expect()->extend() version. This works, but I'm getting the following error with PHPstan in PHPstorm.
phpstan: Call to an undefined method Pest\Expectation<string|null>::toUseMiddleware().
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We're testing route middleware with laravel-test-assertions. To make this more Pest friendly, I rewrote the
assertRouteUsesMiddleware
method into anexpect()->extend()
version. This works, but I'm getting the following error with PHPstan in PHPstorm.Should I do something to support this properly?
Beta Was this translation helpful? Give feedback.
All reactions