Can Vural
Can Vural
> There have been two two-weeks cycles since the last comment. What's the progress on this PR? Hi, We do not have any cycles of development here. 2 weeks was...
Is this fixed with https://github.com/phpstan/phpstan-phpunit/commit/f5b7eb65d93d38673d4c9d8b0b20b6c601697778 ?
> Yes, should be, although I've written that mainly to fix wrong `@psalm-assert empty` annotation in PHPStan, which would get much more annoying with PHPStan 1.9.0 soon to be released...
Looks like this is not specific to Larastan. Please open an issue in PHPStan with a correct playground example. The one you gave has syntax errors.
This seems to be fixed in last versions.
> Support for `@param-closure-this` just landed in PHPStan 1.11.x-dev: [phpstan/phpstan-src@c8e1c8c](https://github.com/phpstan/phpstan-src/commit/c8e1c8cbcbe502388d1cff237a9e1308cf837e89) > > PHPStan 1.11 is going to be released at some point in April or May, but you can already...
This is fixed in the recent versions. Test case: https://github.com/nunomaduro/larastan/blob/340d65ab78e52479c60de27c0851808b1802eaae/tests/Type/data/model-properties-relations.php#L72
I see. It changes in tests with `actingAs` There is plan to implement this. It's a rare edge case.
You can define your `users` relation in `Team` like so: ```php /** * Get all of the users that belong to the team. * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany */ public function...
I also hit an issue similar to this. But looks like now error reporting for `$ref` is working, but error is attached to to `$ref` itself instead of the property...