From dbbe820f55b22621cb0e25a1041233afca2a3c25 Mon Sep 17 00:00:00 2001 From: Laurent Jouanneau Date: Tue, 27 Aug 2024 11:57:09 +0200 Subject: [PATCH] [CI] Fix phpstan errors and freeze version --- .github/workflows/php-stan.yml | 2 +- lizmap/modules/lizmap/classes/lizmap.class.php | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/php-stan.yml b/.github/workflows/php-stan.yml index 7eb6f15be8..2da3cf7935 100644 --- a/.github/workflows/php-stan.yml +++ b/.github/workflows/php-stan.yml @@ -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 diff --git a/lizmap/modules/lizmap/classes/lizmap.class.php b/lizmap/modules/lizmap/classes/lizmap.class.php index c96dff964a..1b93aa2db9 100644 --- a/lizmap/modules/lizmap/classes/lizmap.class.php +++ b/lizmap/modules/lizmap/classes/lizmap.class.php @@ -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; } @@ -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; }