diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 995d5d2..92c5e8a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: - name: Install dependencies uses: "ramsey/composer-install@v2" with: - composer-options: "--ignore-platform-reqs --optimize-autoloader" + composer-options: "--ignore-platform-reqs --optimize-autoloader --no-dev" - uses: "ramsey/composer-install@v2" with: diff --git a/composer.json b/composer.json index 2b210b8..7170665 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,8 @@ "require-dev": { "bamarni/composer-bin-plugin": "^1.8", "friendsofphp/php-cs-fixer": "^3.40", - "phpstan/phpstan": "^1.10" + "phpstan/phpstan": "^1.10", + "pocketmine/pocketmine-mp": "^5.8" }, "license": "GPL-3.0-only", "config": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index ce4117b..87f6e62 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,4 +1,6 @@ -parameters: - level: 9 - paths: - - src \ No newline at end of file +parameters: + level: 9 + paths: + - src + ignoreErrors: + - '#Call to (an undefined method|undefined function) pocketmine\\\\.*#' \ No newline at end of file