php - PHPStan configuration for FuelPHP

one text

Solution:

Did you try to follow this guide? PHPStan: Discovering symbols

I helped set up FuelCMS analysis in the past. What worked for that user was this phpstan.neon:

parameters:
    scanDirectories:
      - core/classes

    bootstrapFiles:
      - core/classes/autoloader.php

There's an example repository that works: https://github.com/ondrejmirtes/phpstan_problem/tree/fix

For some reason the phpstan.neon is buried in app/classes/controller while it should definitely be in the root directory. But otherwise it works.

Source