Skip to content

Commit a8e591d

Browse files
committed
requires PHP 8.1
1 parent f522f1c commit a8e591d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/coding-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: shivammathur/setup-php@v2
1212
with:
13-
php-version: 7.2
13+
php-version: 8.1
1414
coverage: none
1515

1616
- run: composer create-project nette/code-checker temp/code-checker ^3 --no-progress
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- uses: shivammathur/setup-php@v2
2626
with:
27-
php-version: 7.4
27+
php-version: 8.1
2828
coverage: none
2929

3030
- run: composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress

.github/workflows/static-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v3
1414
- uses: shivammathur/setup-php@v2
1515
with:
16-
php-version: 7.4
16+
php-version: 8.1
1717
coverage: none
1818

1919
- run: composer install --no-progress --prefer-dist

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
php: ['7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3']
10+
php: ['8.1', '8.2', '8.3']
1111

1212
fail-fast: false
1313

@@ -35,7 +35,7 @@ jobs:
3535
- uses: actions/checkout@v3
3636
- uses: shivammathur/setup-php@v2
3737
with:
38-
php-version: 7.2
38+
php-version: 8.1
3939
coverage: none
4040

4141
- run: composer update --no-progress --prefer-dist --prefer-lowest --prefer-stable
@@ -49,7 +49,7 @@ jobs:
4949
- uses: actions/checkout@v3
5050
- uses: shivammathur/setup-php@v2
5151
with:
52-
php-version: 7.4
52+
php-version: 8.1
5353
coverage: none
5454

5555
- run: composer install --no-progress --prefer-dist

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616
],
1717
"require": {
18-
"php": "7.2 - 8.3",
18+
"php": "8.1 - 8.3",
1919
"nette/utils": "^3.2.1 || ~4.0.0"
2020
},
2121
"require-dev": {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Authentication & Authorization library for Nette.
2020

2121
Documentation can be found on the [website](https://doc.nette.org/access-control).
2222

23-
It requires PHP version 7.2 and supports PHP up to 8.3.
23+
It requires PHP version 8.1 and supports PHP up to 8.3.
2424

2525

2626
[Support Me](https://github.com/sponsors/dg)

tests/Security/Passwords.hash().phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Assert::same($hash, crypt('dg', $hash));
2626

2727
Assert::exception(function () {
2828
(new Passwords(PASSWORD_BCRYPT, ['cost' => 3]))->hash('dg');
29-
}, PHP_VERSION_ID < 80000 ? Nette\InvalidStateException::class : ValueError::class);
29+
}, ValueError::class);
3030

3131
Assert::exception(function () {
3232
(new Passwords)->hash('');

0 commit comments

Comments
 (0)