-
-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Call to an undefined method user() #254
Conversation
Very nice. Please fix this little thing diff --git a/src/ReturnTypes/Helpers/AuthExtension.php b/src/ReturnTypes/Helpers/AuthExtension.php
index f8cbcf74f183607b36ce1b131b1fcb74b4c6a1c0..b7294079a13eec842457a63f3e8e2c615bc813ab 100644
--- a/src/ReturnTypes/Helpers/AuthExtension.php
+++ b/src/ReturnTypes/Helpers/AuthExtension.php
@@ -13,12 +13,12 @@ declare(strict_types=1);
namespace NunoMaduro\Larastan\ReturnTypes\Helpers;
-use PhpParser\Node\Expr\FuncCall;
+use PHPStan\Type\Type;
use PHPStan\Analyser\Scope;
+use PHPStan\Type\ObjectType;
+use PhpParser\Node\Expr\FuncCall;
use PHPStan\Reflection\FunctionReflection;
use PHPStan\Type\DynamicFunctionReturnTypeExtension;
-use PHPStan\Type\ObjectType;
-use PHPStan\Type\Type;
/**
* @internal |
Would be cool, if you could add a test on this. |
As I can see we have trouble with Lumen. How we can fix this if there is no Auth in Lumen? |
You may help me find a Lumen specialist #244 |
@nunomaduro @szepeviktor Seems like this is old trouble. So maybe can merge without Lumen support? |
@nunomaduro Is it OK for you? |
@szepeviktor I dig it deeper and found that we have same troubles as #71 with auth()->check() and other guard magic calls :( |
It's fine to just cover partially some of the |
It seems that this issue is still breaking since this has been released : #44 (comment) |
Fixes #44