AzuraCast/phpstan.neon

31 lines
984 B
Plaintext

parameters:
level: 2
paths:
- src
bootstrap: %rootDir%/../../../util/phpstan.php
universalObjectCratesClasses:
- Azura\Session\NamespaceInterface
- Azura\View
ignoreErrors:
# Caused by Symfony Validator (perhaps wrongly) returning the interface.
- '#Cannot cast Symfony\\Component\\Validator\\ConstraintViolationListInterface to string.#'
# Supervisor functions that do exist but aren't annotated properly in the connector lib.
- '#Call to an undefined method Supervisor\\Supervisor::reloadConfig().#'
- '#Call to an undefined method Supervisor\\Supervisor::tailProcessLog().#'
- '#Call to an undefined method Supervisor\\Supervisor::signalProcess().#'
dynamicConstantNames:
- APP_IS_COMMAND_LINE
- APP_INSIDE_DOCKER
- APP_TESTING_MODE
- APP_APPLICATION_ENV
- APP_IN_PRODUCTION
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon