Weebly / phpstan-laravel

Laravel plugins for PHPStan
BSD 2-Clause "Simplified" License
51 stars 22 forks source link

Non-static method Illuminate\Auth\Access\Gate::policy() should not be called statically #7

Open Jamesking56 opened 6 years ago

Jamesking56 commented 6 years ago

I keep getting this error in phpstan:

Non-static method Illuminate\Auth\Access\Gate::policy() should not be called statically

7R41N33 commented 6 years ago

How did you resolve this problem?

Jamesking56 commented 6 years ago

By not using phpstan or this library, been using phan instead https://github.com/phan/phan

pablorsk commented 6 years ago

@Jamesking56 phan/phan looks great, but php-ast is required, and I could not install it :(

Jamesking56 commented 6 years ago

@pablorsk php-ast is actually really easy to install, I used pecl one-liner to install it

pablorsk commented 6 years ago

Thanks @Jamesking56,

We use nanobox and don't have it pecl or php-ast :( Own problem, library looks really cool. Nanobox is required for own CI process.