diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38ccb54c..10d50e9c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0'] + php-version: ['8.1'] command: ['cs', 'stan', 'swagger:validate'] steps: - name: Checkout code @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0', '8.1'] + php-version: ['8.1'] test-group: ['unit', 'api'] steps: - name: Checkout code @@ -51,7 +51,7 @@ jobs: - run: composer install --no-interaction --prefer-dist - run: composer test:${{ matrix.test-group }}:ci - uses: actions/upload-artifact@v2 - if: ${{ matrix.php-version == '8.0' }} + if: ${{ matrix.php-version == '8.1' }} with: name: coverage-${{ matrix.test-group }} path: | @@ -62,7 +62,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0', '8.1'] + php-version: ['8.1'] platform: ['sqlite:ci', 'mysql', 'maria', 'postgres', 'ms'] env: LC_ALL: C @@ -91,7 +91,7 @@ jobs: run: composer test:db:${{ matrix.platform }} - name: Upload code coverage uses: actions/upload-artifact@v2 - if: ${{ matrix.php-version == '8.0' && matrix.platform == 'sqlite:ci' }} + if: ${{ matrix.php-version == '8.1' && matrix.platform == 'sqlite:ci' }} with: name: coverage-db path: | @@ -105,7 +105,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0', '8.1'] + php-version: ['8.1'] test-group: ['unit', 'db', 'api'] steps: - name: Checkout code @@ -136,7 +136,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0'] + php-version: ['8.1'] steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 6d50221a..f872ebee 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0', '8.1'] + php-version: ['8.1'] swoole: ['yes', 'no'] steps: - name: Checkout code @@ -53,8 +53,8 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: [ '8.0', '8.1' ] - swoole: [ 'yes', 'no' ] + php-version: ['8.1'] + swoole: ['yes', 'no'] steps: - uses: geekyeggo/delete-artifact@v1 with: diff --git a/.github/workflows/publish-swagger-spec.yml b/.github/workflows/publish-swagger-spec.yml index 5b97ee6c..51907814 100644 --- a/.github/workflows/publish-swagger-spec.yml +++ b/.github/workflows/publish-swagger-spec.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-20.04 strategy: matrix: - php-version: ['8.0'] + php-version: ['8.1'] steps: - name: Checkout code uses: actions/checkout@v2 diff --git a/README.md b/README.md index 6f4afd37..f72d9f92 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ The idea is that you can just generate a container using the image and provide t First, make sure the host where you are going to run shlink fulfills these requirements: -* PHP 8.0 or 8.1 +* PHP 8.1 * The next PHP extensions: json, curl, pdo, intl, gd and gmp/bcmath. * apcu extension is recommended if you don't plan to use openswoole. * xml extension is required if you want to generate QR codes in svg format. diff --git a/composer.json b/composer.json index 2446aace..1e8c580b 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "php": "^8.0", + "php": "^8.1", "ext-json": "*", "ext-pdo": "*", "akrabat/ip-address-middleware": "^2.1", diff --git a/data/infra/examples/nginx-vhost.conf b/data/infra/examples/nginx-vhost.conf index 80ff8afd..5e05481a 100644 --- a/data/infra/examples/nginx-vhost.conf +++ b/data/infra/examples/nginx-vhost.conf @@ -11,7 +11,7 @@ server { location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; - fastcgi_pass unix:/var/run/php/php8.0-fpm.sock; + fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; fastcgi_index index.php; include fastcgi.conf; }