Skip to content

Commit

Permalink
Fix phpstan
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 0699c46 commit ebfb826
Show file tree
Hide file tree
Showing 5 changed files with 632 additions and 633 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/php-stan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
uses: shivammathur/setup-php@v2
# About the PHP version, do not forget to change in PHP Unit as well
with:
php-version: '8.0'
php-version: '8.2'
tools: phpstan:1.11.11
ini-values: error_reporting=22527

- name: Cache dependencies
uses: actions/cache@v4
Expand All @@ -50,7 +51,7 @@ jobs:
- name: Run PHPStan
id: test-phpstan
run: phpstan analyse -c ../phpstan.neon
run: phpstan analyse -c ../phpstan-ci.neon

- name: Notify in case of failure
uses: peter-evans/commit-comment@v3
Expand Down
4 changes: 2 additions & 2 deletions lizmap/modules/lizmap/classes/lizmap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static function getRepositoryList()
public static function getRepositoryProperties()
{
trigger_error('This method is deprecated. Please use the lizmapRepository::getProperties() method.', E_DEPRECATED);

// @phpstan-ignore deadCode.unreachable
return lizmapRepository::$properties;
}

Expand All @@ -150,7 +150,7 @@ public static function getRepositoryProperties()
public static function getRepositoryPropertiesOptions()
{
trigger_error('This method is deprecated. Please use the lizmapRepository::getPropertiesOptions() method.', E_DEPRECATED);

// @phpstan-ignore deadCode.unreachable
return lizmapRepository::$propertiesOptions;
}

Expand Down
Loading

0 comments on commit ebfb826

Please sign in to comment.