Can Vural

Results 132 comments of Can Vural

Is there a working fork that we can use?

> Any reasons not to use [Phive](https://github.com/phar-io/phive), which solves the problem by using a complete different tool for that kind of stuff? Can you define your tool dependencies with Phive?

The type is actually correct: https://phpstan.org/r/475992fb-2335-4829-98ff-5dd1f00c6f9a So that will not hide any bugs. And I think there was already a feature request about warning when PHPDoc type in `@var` and...

The issue is that with PHP8 and named arguments `$foo` inside the `useFoos` method can be `array` See here: https://3v4l.org/piICI So that's why PHPStan resolves it to `array` And when...

> This needs merging. This project rarely receives updates now. So do not hope much.

Don't think so. This project is dead for years now.

> > Don't think so. This project is dead for years now. > > Or feature-complete, as the case may be. Yeah, sorry. That is better way to say it.

@ondrejmirtes This is related to Laravel macros. [This](https://github.com/laravel/framework/blob/8.x/src/Illuminate/Macroable/Traits/Macroable.php) is the trait used in Laravel. As you can see it implements both `__callStatic` and `__call` So for any macro it's fine...

Sorry, I did not get what you were trying to say 😅 What do you mean by `replicate this structure for these scenarios`? I think the important logic on OverridingMethodRule...

> Just curious, can't PHPStan use native enums? That would likely reduce the overhead even more, although would require bumping up PHP requirement to 8.1. PHPStan's source code is downgraded...