Can Vural

Results 212 comments of Can Vural

Hi, Cannot merge this without a test. Please try to add a test case.

Hi, Yeah, the crash should not happen. That should be fixed. But your return annotation should be like `@return array{ background_position: 'App\FullyQualifedName\ImagePosition' ...`

This is implemented under `checkConfigTypes` config parameter.

Hi, Cannot reproduce this. We already have [this](https://github.com/larastan/larastan/blob/dea1002ae29e2406e4a178598337322df87851f2/tests/Integration/data/model-property-builder.php#L39) test case, and it correctly find the error. And even more if I add `User::query()->join('roles', 'users.role_id', '=', 'roles.id')->where('users.email', 'admin');` it doesn't complain.

I see where the problem is now. When we have `table_name.column` we check the column only in database structure, we do not take the `@property` tags into account.

There is nothing to explain here 🤔 I'll have time tomorrow to work on Larastan. So probably tomorrow it'll be released 👍

Hi, I totally agree that it shouldn't be in our config. It should be user's choice. But, on the other hand if we now remove it if users have their...

People do crazy things 🤷🏽 So gonna close this one but will add it to 3.x. Thank you!

This doesn't make too much sense to me 🤔 And I'm surprised PHPStan does not throw more errors. Because the generic type for any relation only accepts child classes of...