Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj authored and github-actions[bot] committed Oct 18, 2024
1 parent 2131561 commit 0699c46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tests/units/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/" ],
Expand Down

0 comments on commit 0699c46

Please sign in to comment.