Skip to content

Commit

Permalink
Bump minimum supported PHP version to 8.1 from 7.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliance committed Feb 3, 2023
1 parent dc4f500 commit f426443
Show file tree
Hide file tree
Showing 5 changed files with 217 additions and 443 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
php_version: ['7.4', '8.0']
php_version: ['8.1', '8.2']

steps:
- uses: actions/checkout@v3
Expand All @@ -37,7 +37,7 @@ jobs:
uses: php-actions/composer@v6
with:
php_version: "${{ matrix.php_version }}"
version: 1
version: 2

- name: Run phpunit tests on php ${{ matrix.php_version }}
uses: php-actions/phpunit@v3
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
build:
environment:
php:
version: 7.4
version: 8.1
tests:
override:
- command: './vendor/bin/phpunit --coverage-clover report.xml'
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Simple bitmask implementation

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

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

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

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

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

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

License
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
}
},
"require": {
"php-64bit": ">=7.4"
"php-64bit": ">=8.1"
},
"require-dev": {
"phpunit/phpunit": "~9"
"phpunit/phpunit": "^9"
}
}
Loading

0 comments on commit f426443

Please sign in to comment.