From 5eec20e6fadd52a8d6b5b2e4b1b52794f0e281d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Bar=C3=A1=C5=A1ek?= Date: Tue, 9 Feb 2021 10:22:38 +0100 Subject: [PATCH] Prepare support for PHP 8 --- .github/workflows/coding-style.yml | 2 +- .github/workflows/main.yml | 4 ++-- composer.json | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coding-style.yml b/.github/workflows/coding-style.yml index ae8d570..6102cd5 100644 --- a/.github/workflows/coding-style.yml +++ b/.github/workflows/coding-style.yml @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v2 - uses: shivammathur/setup-php@v2 with: - php-version: 7.4 + php-version: 8.0 coverage: none - run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 208e158..6138588 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,12 +19,12 @@ jobs: - name: Install PHP uses: shivammathur/setup-php@master with: - php-version: 7.4 + php-version: 8.0 - name: Install composer deps run: | composer create-project nette/code-checker temp/code-checker ^3 --no-progress - composer create-project nette/coding-standard temp/coding-standard ^2 --no-progress + composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress # Install app deps composer install --no-interaction --prefer-dist diff --git a/composer.json b/composer.json index e7567ca..1dd4e51 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ } ], "require": { - "php": ">=7.4.0", + "php": "^7.4 || ^8.0", "ext-json": "*", "ext-mbstring": "*", "ext-iconv": "*", @@ -24,9 +24,9 @@ "nette/security": "^3.1" }, "require-dev": { - "phpstan/phpstan": "^0.12.18", + "phpstan/phpstan": "^0.12.74", "tracy/tracy": "^2.8", - "phpstan/phpstan-nette": "^0.12.6", + "phpstan/phpstan-nette": "^0.12.14", "baraja-core/localization": "^1.2", "spaze/phpstan-disallowed-calls": "^1.1", "roave/security-advisories": "dev-master"