Skip to content

Commit f804a20

Browse files
committed
Csrf 3.0.0
1 parent a563749 commit f804a20

File tree

5 files changed

+31
-38
lines changed

5 files changed

+31
-38
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
name: CI
22
on: ['push', 'pull_request']
33
jobs:
4-
phpstan:
5-
name: PHP Static Analysis
6-
runs-on: ubuntu-latest
7-
steps:
8-
- uses: actions/checkout@v2
9-
- name: PHPStan
10-
uses: docker://oskarstark/phpstan-ga
11-
with:
12-
args: analyse src/ -c phpstan.neon
13-
tests:
14-
name: Unit Tests for PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
4+
ci:
5+
name: PHP ${{ matrix.php }} - ${{ matrix.os }} - ${{ matrix.dependency-version }}
156
runs-on: ${{ matrix.os }}
167
strategy:
178
matrix:
18-
os: [ubuntu-latest, macos-latest, windows-latest]
19-
php: ['7.4', '8.0', '8.1']
9+
os: [ubuntu-latest, macos-latest]
10+
php: ['8.1']
2011
dependency-version: [prefer-stable]
2112

2213
steps:
@@ -27,7 +18,7 @@ jobs:
2718
uses: shivammathur/setup-php@v2
2819
with:
2920
php-version: ${{ matrix.php }}
30-
extensions: pcntl, mcrypt, openssl
21+
extensions: pcntl, mcrypt, openssl
3122
ini-values: disable_functions, error_reporting=E_ALL
3223
tools: composer:v2
3324
coverage: xdebug
@@ -37,28 +28,17 @@ jobs:
3728
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
3829
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3930
40-
- name: Install PHP 7 dependencies
31+
- name: Install PHP 8.1 dependencies
4132
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
42-
if: "matrix.php < 8"
43-
44-
- name: Install PHP 8 dependencies
45-
if: "matrix.php >= 8"
46-
run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress
47-
48-
- name: Run Tests for PHP 7.4
49-
if: "matrix.php == 7.4"
50-
run: ./vendor/bin/pest --coverage
51-
52-
- name: Run Tests for PHP 8.0
53-
if: "matrix.php == 8.0"
54-
run: ./vendor/bin/pest --coverage
55-
33+
34+
- name: PHP Static Analysis for PHP 8.1
35+
run: ./vendor/bin/phpstan
36+
5637
- name: Run Tests for PHP 8.1
57-
if: "matrix.php == 8.1"
5838
run: ./vendor/bin/pest --coverage
5939

6040
support:
61-
needs: [phpstan, tests]
41+
needs: [ci]
6242
name: Discord Notification
6343
runs-on: ubuntu-latest
6444
steps:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<a name="3.0.0"></a>
2+
# [3.0.0](https://github.com/glowyphp/csrf) (2022-07-03)
3+
* Moving to PHP 8.1
4+
15
<a name="2.0.1"></a>
26
# [2.0.1](https://github.com/glowyphp/csrf) (2021-07-02)
37
* Fixed issue with openssl and mcrypt

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Csrf Package provides Cross Site Request Forgery protection by comparing provide
44
</p>
55

66
<p align="center">
7-
<a href="https://github.com/glowyphp/csrf/releases"><img alt="Version" src="https://img.shields.io/github/release/glowyphp/csrf.svg?label=version&style=for-the-badge"></a> <a href="https://github.com/glowyphp/csrf"><img src="https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge" alt="License"></a> <a href="https://packagist.org/packages/glowy/csrf"><img src="https://poser.pugx.org/glowy/macroable/downloads?style=for-the-badge" alt="Total downloads"></a> <img src="http://poser.pugx.org/glowy/csrf/require/php?style=for-the-badge">
7+
<img src="https://img.shields.io/badge/license-MIT-blue.svg?label=License" alt="License MIT"> <a href="https://packagist.org/packages/glowy/csrf"><img src="https://poser.pugx.org/glowy/csrf/downloads" alt="Total downloads"></a> <img alt="GitHub Repo stars" src="https://img.shields.io/github/stars/glowyphp/csrf?label=Stars"> <img alt="GitHub forks" src="https://img.shields.io/github/forks/glowyphp/csrf?label=Forks"> <a href="https://hitsofcode.com"><img alt="Hits of Code" src="https://hitsofcode.com/github/glowyphp/csrf?branch=3.x"></a> <a href="https://discord.gg/ewQkqgfBAc"><img src="https://img.shields.io/discord/423097982498635778.svg?logo=discord&label=Discord%20Chat" alt="Discord"></a>
88
</p>
99

1010
<br>

composer.json

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
{
1414
"name": "Sergey Romanenko",
1515
"email": "awilum@msn.com",
16-
"homepage": "https://github.com/Awilum"
16+
"homepage": "https://awilum.github.io"
1717
}
1818
],
1919
"require": {
20-
"php": "^7.4 || ^8.0"
20+
"php": "^8.1"
2121
},
2222
"autoload":{
2323
"psr-4": {
@@ -26,8 +26,18 @@
2626
},
2727
"require-dev": {
2828
"doctrine/coding-standard": "9.0.0",
29-
"pestphp/pest": "^1.21.1",
30-
"phpstan/phpstan": "^1.2.0",
31-
"symfony/var-dumper": "^5.4.0"
29+
"pestphp/pest": "^1.21.3",
30+
"phpstan/phpstan": "^1.8.0",
31+
"victorjonsson/markdowndocs": "dev-master"
32+
},
33+
"config": {
34+
"apcu-autoloader": true,
35+
"optimize-autoloader": true,
36+
"platform-check": false,
37+
"sort-packages": true,
38+
"allow-plugins": {
39+
"pestphp/pest-plugin": true,
40+
"dealerdirect/phpcodesniffer-composer-installer": true
41+
}
3242
}
3343
}

phpstan.neon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ parameters:
22
level: 0
33
paths:
44
- %currentWorkingDirectory%/src/
5-
- %currentWorkingDirectory%/tests/
65
reportUnmatchedIgnoredErrors: false
76
checkGenericClassInNonGenericObjectType: false
87
checkMissingIterableValueType: false

0 commit comments

Comments
 (0)