Acorn + Larastan

Hey there,

Is there a way around to use larastan with acorn ?
Because when I run analyse, there is this type of errors, knowing that database_path() has never been called in NewsBlock.php

Internal error: Call to undefined function database_path() while analysing file /var/www/app/app/NewsBlock.php
Run PHPStan with -v option and post the stack trace to: Sign in to GitHub ยท GitHub

This is my phpstan.neon file configuration.

includes:
    # @see https://github.com/phpstan/phpstan-src/blob/master/conf/bleedingEdge.neon
    # - phar://phpstan.phar/conf/bleedingEdge.neon
    # Include this extension
    # - ./vendor/szepeviktor/phpstan-wordpress/extension.neon
    - ./vendor/larastan/larastan/extension.neon
    - ./vendor/phpstan/phpstan-deprecation-rules/rules.neon
parameters:
    paths:
      - ./
    bootstrapFiles:
      - ./vendor/autoload.php
    scanFiles:
    scanDirectories:
      - ./public/wp/wp-includes
    dynamicConstantNames:
    excludePaths:
      analyseAndScan:
        - ./docker
        - ./node_modules
        - ./public/content/uploads
        - ./public/content/languages
        - ./public/dist
        - ./storage
      analyse:
        - ./public/wp
        - ./public/content/mu-plugins
        - ./public/content/plugins
        - ./public/content/upgrade?
        - ./public/wp-config.php
        - ./vendor
    level: 7
    inferPrivatePropertyTypeFromConstructor: true
    ignoreErrors:
    tmpDir: ./docker/cache/phpstan