AzuraCast/phpstan.neon

30 lines
896 B
Plaintext

parameters:
level: 1
paths:
- src
fileExtensions:
- php
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().#'
# PHPDocs
- '#PHPDoc tag .*#'
includes:
- vendor/phpstan/phpstan-doctrine/extension.neon