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; }