Access to an undefined property in custom package #1255
Unanswered
waelsjaber
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi, Larastan scans your migrations or schema dumps to understand the model properties. How is the |
Beta Was this translation helpful? Give feedback.
1 reply
-
For anybody who is also getting this issue - I have fixed it by including a stub file with the Laravel Audit model and its properties annotated so that PHPstan can pick it up. For reference, the files are as follows: /stubs/Audit.stub.php
To get PHPstan to read this, inside my phpstan.neon configuration file I have:
|
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
-
When I run
larastan
, I got an issue as below:My code is:
How is the best way to solve this issue?
Beta Was this translation helpful? Give feedback.
All reactions