Replies: 1 comment 5 replies
-
Hello, what you're trying to use PHPStan for? Please give me as much details as possible and I'll try to point you in the right direction. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use PHPStan as a library and get an anonymous function return type. And it seems there is some problem with namespace resolving.
The example below outputs
*ERROR*
if the Test class doesn't have FQN and outputsint
(as expected) if it is. Both function.php and Test.php files are located in the src/Projection directory.function.php:
Test.php:
index.php:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions