diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 410b1ff74..4cee1673f 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -24,12 +24,24 @@ parameters: count: 1 path: src/Entity/AuditRecordRepository.php + - + message: '#^Method App\\Entity\\PackageRepository\:\:getSuggestCount\(\) should return int\<0, max\> but returns int\.$#' + identifier: return.type + count: 1 + path: src/Entity/PackageRepository.php + - message: '#^Query error\: Unknown column ''d\.total'' in ''order clause'' \(1054\)\.$#' identifier: dba.syntaxError count: 1 path: src/Entity/PackageRepository.php + - + message: '#^Method App\\Entity\\PhpStatRepository\:\:getStatVersions\(\) should return list\ but returns array\\.$#' + identifier: return.type + count: 1 + path: src/Entity/PhpStatRepository.php + - message: '#^Offset ''name'' on array\{name\: string, description\?\: string\} on left side of \?\? always exists and is not nullable\.$#' identifier: nullCoalesce.offset diff --git a/phpstan-bootstrap.php b/phpstan-bootstrap.php index 95d61c8ff..b20a205a4 100644 --- a/phpstan-bootstrap.php +++ b/phpstan-bootstrap.php @@ -16,6 +16,7 @@ $config->stringifyTypes(false); // $config->analyzeQueryPlans(true); // $config->debugMode(true); +// $config->utilizeSqlAst(true); // requires sqlftw/sqlftw (new Dotenv())->bootEnv(__DIR__ . '/.env'); $dsn = parse_url($_SERVER['DATABASE_URL']);