diff --git a/.coveralls.yml b/.coveralls.yml deleted file mode 100644 index fe166c1..0000000 --- a/.coveralls.yml +++ /dev/null @@ -1,2 +0,0 @@ -coverage_clover: docs/phpunit/clover.xml -json_path: docs/phpunit/coveralls-upload.json diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml deleted file mode 100644 index 2dfab90..0000000 --- a/.github/workflows/phpstan.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: PHPStan - -on: - push: - branches: - - master - pull_request: - -jobs: - analyse: - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Set up PHP 7.4 - uses: shivammathur/setup-php@v2 - with: - php-version: '7.4' - extensions: mbstring - tools: cs2pr, phpstan:0.12.9 - - - name: Validate composer.json and composer.lock - run: composer validate - - - name: Get Composer Cache Directory - id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache dependencies - uses: actions/cache@v1 - with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- - - - name: Install dependencies - run: composer install --prefer-dist --no-progress --no-suggest - - - name: PHPStan - run: phpstan analyse --error-format=checkstyle | cs2pr diff --git a/.github/workflows/runTests.yml b/.github/workflows/runTests.yml index b9f1190..06a94e4 100644 --- a/.github/workflows/runTests.yml +++ b/.github/workflows/runTests.yml @@ -59,10 +59,3 @@ jobs: - name: Run test suite run: composer run-script test -- --coverage-text - - name: Notify Coveralls - if: matrix.php-versions == '7.3' && runner.os == 'Linux' && matrix.dependencies == 'install' - env: - COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - run: | - composer require php-coveralls/php-coveralls - composer run-script php-coveralls -- --verbose diff --git a/phpstan.neon.dist b/phpstan.neon.dist deleted file mode 100644 index 9ae9bcf..0000000 --- a/phpstan.neon.dist +++ /dev/null @@ -1,31 +0,0 @@ -includes: - - vendor/bovigo/assert/src/main/resources/phpstan/bovigo-assert.neon -parameters: - inferPrivatePropertyTypeFromConstructor: true - level: max - paths: - - ./src/main/php - - ./src/test/php - ignoreErrors: - # False positive - - '#Call to an undefined method stubbles\\reflect\\annotation\\Annotation::#' - - - message: '#doc of method XSLTProcessor::transformToDoc() expects DOMNode, DOMDocument|null given#' - path: src/main/php/xsl/XslProcessor.php - # phpstan doesn't know return values of \XSLTProcessor properly - - - message: '#Strict comparison using === between false and DOMDocument will always evaluate to false#' - path: src/main/php/xsl/XslProcessor.php - - - message: '#Strict comparison using === between false and int will always evaluate to false#' - path: src/main/php/xsl/XslProcessor.php - - - message: '#Strict comparison using === between false and string will always evaluate to false#' - path: src/main/php/xsl/XslProcessor.php - # explicit tests - - - message: '#rssFeedItem of method stubbles\\xml\\rss\\RssFeedItemSerializer::serialize\(\) expects stubbles\\xml\\rss\\RssFeedItem, stdClass given#' - path: src/test/php/rss/RssFeedItemSerializerTest.php - - - message: '#rssFeed of method stubbles\\xml\\rss\\RssFeedSerializer::serialize\(\) expects stubbles\\xml\\rss\\RssFeed, stdClass given#' - path: src/test/php/rss/RssFeedSerializerTest.php