-
Notifications
You must be signed in to change notification settings - Fork 391
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
Use FQN instead of alias to fix phpstan internal error #807
Conversation
Fixes an phpstan internal error after #798 ![image](https://user-images.githubusercontent.com/9074391/226948997-571eabff-d226-4983-b4df-39f028431072.png)
Did you test this fix?? |
|
I don't see any difference, so if we make phpstan happy, then why not 😄 |
this is like rollback from last release of https://github.com/owen-it/laravel-auditing/pull/798/files |
I don't think it's a rollback. Before #798 it used a specific |
@SanderMuller hi, it is a rollback to #734 |
Weird, #809 again results in the same error. I have no clue why, though. Will see if I can find something. It's fine by me to merge #809, we can skip the version update until we have found a solution for this. |
I found the culprint, we added a scope on this audits relation which was the source of erroring out, if I manually add a return type via docblock to that method, then the error is gone. |
@SanderMuller that change was introduced by me here #798 because I was getting this error from larastan, now that you changed it back I am still getting it |
I can confirm that I also have the same issues as @aglipanci mentioned above since this week. |
I just came across the same issue and put a PR for the fix. |
Fixes an phpstan (Larastan) internal error which we only started getting after #798