diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index be9e366b..7b88f25e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: with: file: PHP-Linux-x86_64-PM5.tar.gz repo: NetherGamesMC/php-build-scripts - version: "tags/php-8.3-latest" + version: "tags/php-8.3-ffi-latest" token: ${{ secrets.GITHUB_TOKEN }} - name: Unpack PHP Release run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz @@ -33,7 +33,7 @@ jobs: ./pharbuilder -i . -o ./NGPlots.phar echo Build completed! - name: Upload - uses: actions/upload-artifact@v3.1.0 + uses: actions/upload-artifact@v4 with: name: NGPlots path: NGPlots.phar diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 40d93382..9c0be86d 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,7 +16,7 @@ jobs: with: file: PHP-Linux-x86_64-PM5.tar.gz repo: NetherGamesMC/php-build-scripts - version: "tags/php-8.3-latest" + version: "tags/php-8.3-ffi-latest" token: ${{ secrets.GITHUB_TOKEN }} - name: Unpack PHP Release run: tar -xzvf PHP-Linux-x86_64-PM5.tar.gz diff --git a/src/MyPlot/Plot.php b/src/MyPlot/Plot.php index 9eacd4d8..3f9acd88 100644 --- a/src/MyPlot/Plot.php +++ b/src/MyPlot/Plot.php @@ -130,6 +130,7 @@ public function removeHelper(string $username): bool return false; } unset($this->helpers[$key]); + $this->helpers = array_values($this->helpers); return true; }