Skip to content

Commit f426443

Browse files
committed
Bump minimum supported PHP version to 8.1 from 7.4.
1 parent dc4f500 commit f426443

File tree

5 files changed

+217
-443
lines changed

5 files changed

+217
-443
lines changed

.github/workflows/main.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
strategy:
1919
matrix:
20-
php_version: ['7.4', '8.0']
20+
php_version: ['8.1', '8.2']
2121

2222
steps:
2323
- uses: actions/checkout@v3
@@ -37,7 +37,7 @@ jobs:
3737
uses: php-actions/composer@v6
3838
with:
3939
php_version: "${{ matrix.php_version }}"
40-
version: 1
40+
version: 2
4141

4242
- name: Run phpunit tests on php ${{ matrix.php_version }}
4343
uses: php-actions/phpunit@v3

.scrutinizer.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build:
22
environment:
33
php:
4-
version: 7.4
4+
version: 8.1
55
tests:
66
override:
77
- command: './vendor/bin/phpunit --coverage-clover report.xml'

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Simple bitmask implementation
33

44
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
55
[![Packagist](https://img.shields.io/packagist/v/aliance/bitmask.svg)](https://packagist.org/packages/aliance/bitmask)
6-
![PHP Version](https://img.shields.io/badge/PHP-7.4-green.svg)
6+
![PHP Version](https://img.shields.io/badge/PHP-8.1-green.svg)
77
[![Code Coverage](https://scrutinizer-ci.com/g/Aliance/Bitmask/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Aliance/Bitmask/?branch=master)
88

99
About
@@ -25,7 +25,7 @@ composer require aliance/bitmask
2525
If you checkout this library for testing purposes, install its dependencies:
2626

2727
```bash
28-
docker run --rm -it --volume $PWD:/app -u $(id -u):$(id -g) composer:1.10.19 i
28+
docker run --rm -it --volume $PWD:/app -u $(id -u):$(id -g) composer:2 i
2929
```
3030

3131
Usage
@@ -34,7 +34,7 @@ Usage
3434
See usage in [sample](./example/example.php) file.
3535

3636
```bash
37-
docker run -it --rm -v "$PWD":/usr/src/bitmask -w /usr/src/bitmask php:7.4-cli php example/example.php
37+
docker run -it --rm -v "$PWD":/usr/src/bitmask -w /usr/src/bitmask php:8.1-cli php example/example.php
3838
```
3939
```
4040
Check user for all access levels:
@@ -58,7 +58,7 @@ Tests
5858

5959
For completely tests running just call `composer exec phpunit` or use
6060
```bash
61-
docker run -it --rm -v "$PWD":/usr/src/bitmask -w /usr/src/bitmask php:7.4-cli php ./vendor/bin/phpunit
61+
docker run -it --rm -v "$PWD":/usr/src/bitmask -w /usr/src/bitmask php:8.1-cli php ./vendor/bin/phpunit
6262
```
6363

6464
License

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
}
3333
},
3434
"require": {
35-
"php-64bit": ">=7.4"
35+
"php-64bit": ">=8.1"
3636
},
3737
"require-dev": {
38-
"phpunit/phpunit": "~9"
38+
"phpunit/phpunit": "^9"
3939
}
4040
}

0 commit comments

Comments
 (0)