diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 05e533d8e3..44d4477391 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -604,3 +604,11 @@ parameters: message: "#^Inner named functions are not supported by PHPStan\\. Consider refactoring to an anonymous function, class method, or a top\\-level\\-defined function\\. See issue \\#165 \\(https\\://github\\.com/phpstan/phpstan/issues/165\\) for more details\\.$#" count: 1 path: lizmap/modules/view/controllers/lizMap.classic.php + - + message: "#^Call to an undefined static method jLocale::getBundle\\(\\)\\.$#" + count: 1 + path: lizmap/modules/lizmap/lib/App/LocalesLoader.php + - + message: "#^Unreachable statement - code above always terminates\\.$#" + count: 2 + path: lizmap/modules/lizmap/classes/lizmap.class.php \ No newline at end of file diff --git a/tests/units/composer.json b/tests/units/composer.json index 3aa2a26c90..7793edb4d5 100644 --- a/tests/units/composer.json +++ b/tests/units/composer.json @@ -10,7 +10,7 @@ "require": { "php": ">=7.3.0", "phpunit/phpunit": "^10.5.29", - "phpstan/phpstan": "^1.10.1" + "phpstan/phpstan": "1.11.11" }, "autoload": { "classmap": ["../../lizmap/modules/lizmap/classes/" ],