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

rules:
    - App\PHPStan\ForbiddenGlobalFunctionsRule

parameters:

    paths:
        - app

    level: 6

    ignoreErrors:
        - identifier: argument.templateType
        - identifier: missingType.generics

        # We are getting and setting environment variables directly
        -
            identifier: larastan.noEnvCallsOutsideOfConfig
            paths:
                - app/Console/Commands/Environment/*.php
                - app/Extensions/Captcha/Providers/*.php
                - app/Extensions/OAuth/Providers/*.php
                - app/Filament/Admin/Pages/Settings.php
