Skip to content

Commit 9ab84b3

Browse files
authored
Add support for php8.1 (#5)
1 parent 0c73195 commit 9ab84b3

File tree

7 files changed

+38
-3464
lines changed

7 files changed

+38
-3464
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest, windows-latest]
12-
php: [8.0, 7.4]
12+
php: [8.1, 8.0, 7.4]
1313
stability: [prefer-stable]
1414

1515
name: PHP${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ testbench.yaml
99
vendor
1010
.php-cs-fixer.cache
1111
.phpunit.cache
12+
composer.lock

SECURITY.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Security Policy
2+
3+
## Supported Versions
4+
5+
`phpjuice/slopeone` Package requires PHP 7.4 or higher. If you are using an older version of php this package may not
6+
function correctly.
7+
8+
| Version | Supported |
9+
|---------|--------------------|
10+
| 2.0.x | :white_check_mark: |
11+
| < 2.0 | :x: |
12+
13+
## Reporting a Vulnerability
14+
15+
Found a bug? Do you have general questions or suggestions for improving the package? Feel free
16+
to [create an issue on GitHub](https://github.com/phpjuice/slopeone/issues), we'll try to address it as soon as
17+
possible.
18+
19+
If you discover any security related issues, please email us at phpjuice@gmail.com instead of using the issue tracker.

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"source": "https://github.com/phpjuice/slopeone"
2222
},
2323
"require": {
24-
"php": "^7.4|^8.0"
24+
"php": "^7.4|^8.0|^8.1"
2525
},
2626
"require-dev": {
2727
"squizlabs/php_codesniffer": "^3.4",
@@ -39,8 +39,8 @@
3939
}
4040
},
4141
"scripts": {
42-
"test": "vendor/bin/pest",
43-
"analyse": "phpstan analyse src tests",
42+
"test": "vendor/bin/pest --colors=always",
43+
"analyse": "phpstan analyse --ansi --debug",
4444
"php-cs-fixer": [
4545
"php-cs-fixer fix src --rules=@PSR2",
4646
"php-cs-fixer fix tests --rules=@PSR2"

0 commit comments

Comments
 (0)