Replies: 2 comments 1 reply
-
It might be best to configure phpstan to remove that warning for now, as we won't be making any changes our this anytime soon. |
Beta Was this translation helpful? Give feedback.
1 reply
-
In case it helps anyone else, here's how I disabled these errors. It took me a few attempts before I noticed the full stop at the end of the message. In parameters:
ignoreErrors:
- '#^Call to method .+ on an unknown class Spatie\\.+\\Ray.$#' |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
"php": "^7.4",
spatie/laravel-ray: 1.5.2
nunomaduro/larastan": v0.6.12
Hello, first of all, thank you a lot for your package! Super helpful and fun to use!
Just wanted to signal that PhpStan seems to have trouble understanding ray.
phpstan
Line Modules/User/Tests/Feature/Backend/ItCanCreateANewUserTest.php
20 Call to method newScreen() on an unknown class
Spatie\WordPressRay\Ray.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
32 Call to method newScreen() on an unknown class
Spatie\WordPressRay\Ray.
💡 Learn more at https://phpstan.org/user-guide/discovering-symbols
Beta Was this translation helpful? Give feedback.
All reactions