diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 83f070aba44..24a12cecd4b 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -43,7 +43,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php-version }} - tools: phpstan, cs2pr + tools: phpstan:1, cs2pr extensions: calendar, json, imagick, gd, zip, mbstring, intl, opcache, imap, mysql, pgsql, sqlite3, ldap, xml, mcrypt diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 6b2dbf737ab..030b3a69a16 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -25,9 +25,9 @@ parameters: - htdocs/support/* analyse: - htdocs/includes/* - checkAlwaysTrueCheckTypeFunctionCall: false - checkAlwaysTrueInstanceof: false - checkAlwaysTrueStrictComparison: false + # checkAlwaysTrueCheckTypeFunctionCall: false + # checkAlwaysTrueInstanceof: false + # checkAlwaysTrueStrictComparison: false checkClassCaseSensitivity: true checkFunctionArgumentTypes: false checkFunctionNameCase: true @@ -62,7 +62,7 @@ parameters: - '#.*phan-var-force #' internalErrorsCountLimit: 50 cache: - nodesByFileCountMax: 512 + # nodesByFileCountMax: 512 nodesByStringCountMax: 512 reportUnmatchedIgnoredErrors: false universalObjectCratesClasses: