diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 4e27e3d..2f3d40b 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -10,25 +10,20 @@ jobs: steps: - name: Startup - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Download PHP Release uses: dsaltares/fetch-gh-release-asset@1.1.1 with: - file: Linux.zip + file: PHP-Linux-x86_64-PM5.tar.gz repo: NetherGamesMC/php-build-scripts - version: "tags/8.2-pm5" + version: "tags/php-8.3-latest" token: ${{ secrets.GITHUB_TOKEN }} - name: Unpack PHP Release - run: unzip Linux.zip && tar -xzvf PHP_Linux-x86_64.tar.gz - - name: Checkout PharBuilder - uses: actions/checkout@v3 - with: - repository: NetherGamesMC/PharBuilder - token: ${{ secrets.ng_token }} - path: PharBuilder - ref: pm5 + run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz - name: Download Composer run: curl -o composer.phar "https://getcomposer.org/composer-stable.phar" + - name: Add Composer GitHub access token + run: ./bin/php7/bin/php composer.phar config --global github-oauth.github.com ${{ secrets.ng_token }} - name: Install Composer dependencies run: ./bin/php7/bin/php composer.phar install --prefer-dist --no-interaction - name: Run PHPStan diff --git a/composer.json b/composer.json index 49f481e..3adbedb 100644 --- a/composer.json +++ b/composer.json @@ -9,8 +9,12 @@ "ext-igbinary": "*" }, "require-dev": { - "phpstan/phpstan": "1.10.21" + "phpstan/phpstan": "1.10.21", + "nethergamesmc/pocketmine-mp": "dev-stable" }, + "repositories": [ + { "type": "vcs", "url": "git@github.com:NetherGamesMC/PocketMine-MP.git" } + ], "autoload": { "psr-4": { "libasynCurl\\": "/" diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 6946363..b645f50 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -3,12 +3,7 @@ parameters: checkMissingIterableValueType: false paths: - . - bootstrapFiles: - - phar://PharBuilder/PocketMine-MP.phar/vendor/autoload.php - scanDirectories: - - phar://PharBuilder/PocketMine-MP.phar excludePaths: analyse: - bin - - PharBuilder - vendor \ No newline at end of file