includes:
    - vendor/larastan/larastan/extension.neon
    - vendor/nesbot/carbon/extension.neon

parameters:

    paths:
        - app/

    # Level 10 is the highest level
    level: 5

    ignoreErrors:

        # PHPStan is not able to understand the pivot attributes at the moment
        - '#Access to an undefined property Illuminate\\Database\\Eloquent\\Relations\\Pivot::\$[a-zA-Z]+#'

        # FilesTrait::files() defines a morphMany via traits — larastan's relationExistence
        # rule can't statically resolve trait-defined polymorphic relations even though they
        # work at runtime. Models using FilesTrait: Aircraft, Airline, Airport, Subfleet.
        - identifier: larastan.relationExistence
          message: '#Relation ''files'' is not found in App\\Models\\(Aircraft|Airline|Airport|Subfleet) model\.#'

#        - '#PHPDoc tag @var#'
#
#    excludePaths:
#        - ./*/*/FileToBeExcluded.php
