Skip to content

Commit

Permalink
[CI] Fix phpstan errors and freeze version
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Aug 27, 2024
1 parent b9429b9 commit dbbe820
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-stan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# About the PHP version, do not forget to change in PHP Unit as well
with:
php-version: '8.0'
tools: phpstan
tools: phpstan:1.11.11

- name: Cache dependencies
uses: actions/cache@v4
Expand Down
2 changes: 0 additions & 2 deletions lizmap/modules/lizmap/classes/lizmap.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ 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 @@ -152,7 +151,6 @@ 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

0 comments on commit dbbe820

Please sign in to comment.