File tree Expand file tree Collapse file tree 12 files changed +115
-44
lines changed Expand file tree Collapse file tree 12 files changed +115
-44
lines changed Original file line number Diff line number Diff line change 1
1
* text =auto eol =lf
2
2
3
- /tests export-ignore
4
- .editorconfig export-ignore
5
- .gitattributes export-ignore
6
- .gitignore export-ignore
7
- .travis.yml export-ignore
8
- phpunit.xml export-ignore
9
- phpcs.xml export-ignore
3
+ /tests export-ignore
4
+ .editorconfig export-ignore
5
+ .gitattributes export-ignore
6
+ .gitignore export-ignore
7
+ .php-cs-fixer.php export-ignore
8
+ phpcs.xml.dist export-ignore
9
+ phpunit.xml.dist export-ignore
10
+ .phpstan.neon export-ignore
Original file line number Diff line number Diff line change 1
1
name : " testing"
2
2
3
3
on :
4
- push :
5
- branches : [ master ]
6
- pull_request :
7
- branches : [ master ]
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
8
9
9
jobs :
10
10
qa :
@@ -13,19 +13,19 @@ jobs:
13
13
14
14
steps :
15
15
- name : Checkout
16
- uses : actions/checkout@v2
16
+ uses : actions/checkout@v4
17
17
18
18
- name : Validate composer.json and composer.lock
19
19
run : composer validate
20
20
21
21
- name : Cache Composer packages
22
22
id : composer-cache
23
- uses : actions/cache@v2
23
+ uses : actions/cache@v4
24
24
with :
25
- path : vendor
26
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27
- restore-keys : |
28
- ${{ runner.os }}-php-
25
+ path : vendor
26
+ key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-php-
29
29
30
30
- name : Install dependencies
31
31
if : steps.composer-cache.outputs.cache-hit != 'true'
@@ -40,37 +40,34 @@ jobs:
40
40
41
41
strategy :
42
42
matrix :
43
- php :
44
- - 7.2
45
- - 7.3
46
- - 7.4
47
- composer-args : [ "" ]
48
- include :
49
- - php : 8.0
50
- composer-args : --ignore-platform-reqs
51
- fail-fast : false
43
+ php :
44
+ - 7.2
45
+ - 7.3
46
+ - 7.4
47
+ - 8.0
48
+ - 8.1
49
+ - 8.2
50
+ - 8.3
51
+ - 8.4
52
52
53
53
steps :
54
54
- name : Checkout
55
- uses : actions/checkout@v2
55
+ uses : actions/checkout@v4
56
56
57
57
- name : Install PHP
58
58
uses : shivammathur/setup-php@v2
59
59
with :
60
60
php-version : ${{ matrix.php }}
61
61
62
62
- name : Cache PHP dependencies
63
- uses : actions/cache@v2
63
+ uses : actions/cache@v4
64
64
with :
65
65
path : vendor
66
66
key : ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
67
67
restore-keys : ${{ runner.os }}-php-${{ matrix.php }}-composer-
68
68
69
69
- name : Install dependencies
70
- run : composer install --prefer-dist --no-progress ${{ matrix.composer-args }}
70
+ run : composer install --prefer-dist --no-progress
71
71
72
72
- name : Tests
73
73
run : composer test
74
-
75
- - name : Tests coverage
76
- run : composer coverage
Original file line number Diff line number Diff line change @@ -3,3 +3,6 @@ composer.lock
3
3
.php_cs.cache
4
4
coverage
5
5
.phpunit.result.cache
6
+ .idea
7
+ kit
8
+ * .cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ return My \PhpCsFixerConfig::create ()
4
+ ->setFinder (
5
+ PhpCsFixer \Finder::create ()
6
+ ->files ()
7
+ ->name ('*.php ' )
8
+ ->in (__DIR__ .'/src ' )
9
+ ->in (__DIR__ .'/tests ' )
10
+ );
Original file line number Diff line number Diff line change
1
+ parameters :
2
+ level : 8
3
+ paths :
4
+ - src
5
+ - tests
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/ ) .
7
7
8
+ ## [ 2.1.0] - 2025-03-21
9
+ ### Added
10
+ - Support for PHP 8.4
11
+
8
12
## [ 2.0.0] - 2020-12-03
9
13
### Added
10
14
- Support for PHP 8
@@ -54,6 +58,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
54
58
## 0.1.0 - 2016-10-08
55
59
First version
56
60
61
+ [ 2.1.0 ] : https://github.com/middlewares/aura-session/compare/v2.0.0...v2.1.0
57
62
[ 2.0.0 ] : https://github.com/middlewares/aura-session/compare/v1.1.0...v2.0.0
58
63
[ 1.1.0 ] : https://github.com/middlewares/aura-session/compare/v1.0.0...v1.1.0
59
64
[ 1.0.0 ] : https://github.com/middlewares/aura-session/compare/v0.5.0...v1.0.0
Original file line number Diff line number Diff line change 1
1
The MIT License (MIT)
2
2
3
- Copyright (c) 2018
3
+ Copyright (c) 2018-2025
4
4
5
5
Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 19
19
"require" : {
20
20
"php" : " ^7.2 || ^8.0" ,
21
21
"aura/session" : " ^2.1" ,
22
- "psr/http-server-middleware" : " ^1.0 "
22
+ "psr/http-server-middleware" : " ^1"
23
23
},
24
24
"require-dev" : {
25
- "phpunit/phpunit" : " ^8|^9" ,
26
- "friendsofphp/php-cs-fixer" : " ^2.0" ,
27
- "squizlabs/php_codesniffer" : " ^3.0" ,
28
- "middlewares/utils" : " ^2.1" ,
29
- "phpstan/phpstan" : " ^0.12" ,
30
- "laminas/laminas-diactoros" : " ^2.3"
25
+ "phpunit/phpunit" : " ^8 || ^9" ,
26
+ "friendsofphp/php-cs-fixer" : " ^3" ,
27
+ "squizlabs/php_codesniffer" : " ^3" ,
28
+ "middlewares/utils" : " ^2 || ^3 || ^4" ,
29
+ "phpstan/phpstan" : " ^1 || ^2" ,
30
+ "laminas/laminas-diactoros" : " ^2 || ^3" ,
31
+ "oscarotero/php-cs-fixer-config" : " ^2"
31
32
},
32
33
"autoload" : {
33
34
"psr-4" : {
47
48
"coverage" : " phpunit --coverage-text" ,
48
49
"coverage-html" : " phpunit --coverage-html=coverage"
49
50
}
50
- }
51
+ }
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" ?>
2
+ <ruleset name =" Middlewares coding standard" >
3
+ <description >Middlewares coding standard</description >
4
+
5
+ <!-- display progress -->
6
+ <arg value =" p" />
7
+ <arg name =" report" value =" full" />
8
+ <arg name =" colors" />
9
+
10
+ <!-- coding standard -->
11
+ <rule ref =" PSR2" />
12
+
13
+ <!-- Paths to check -->
14
+ <file >src</file >
15
+ <file >tests</file >
16
+ </ruleset >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <phpunit bootstrap =" vendor/autoload.php"
3
+ xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
4
+ xsi : noNamespaceSchemaLocation =" vendor/phpunit/phpunit/phpunit.xsd"
5
+ backupGlobals =" false"
6
+ backupStaticAttributes =" false"
7
+ beStrictAboutOutputDuringTests =" true"
8
+ beStrictAboutTestsThatDoNotTestAnything =" true"
9
+ beStrictAboutTodoAnnotatedTests =" true"
10
+ colors =" true"
11
+ verbose =" true"
12
+ convertErrorsToExceptions =" true"
13
+ convertNoticesToExceptions =" true"
14
+ convertWarningsToExceptions =" true"
15
+ processIsolation =" false"
16
+ stopOnFailure =" false"
17
+ failOnWarning =" true" >
18
+ <testsuites >
19
+ <testsuite name =" AuraSession test suite" >
20
+ <directory >tests</directory >
21
+ </testsuite >
22
+ </testsuites >
23
+
24
+ <filter >
25
+ <whitelist addUncoveredFilesFromWhitelist =" true" processUncoveredFilesFromWhitelist =" true" >
26
+ <directory >./src</directory >
27
+ <exclude >
28
+ <directory >./tests</directory >
29
+ <directory >./vendor</directory >
30
+ </exclude >
31
+ </whitelist >
32
+ </filter >
33
+ </phpunit >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class AuraSession implements MiddlewareInterface
32
32
*
33
33
* @param SessionFactory|null $factory
34
34
*/
35
- public function __construct (SessionFactory $ factory = null )
35
+ public function __construct (? SessionFactory $ factory = null )
36
36
{
37
37
$ this ->factory = $ factory ;
38
38
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ class AuraSessionTest extends TestCase
13
13
/**
14
14
* @runInSeparateProcess
15
15
*/
16
- public function testAuraSession ()
16
+ public function testAuraSession (): void
17
17
{
18
18
$ response = Dispatcher::run (
19
19
[
@@ -31,7 +31,7 @@ function ($request) {
31
31
$ this ->assertEquals ('custom-session ' , (string ) $ response ->getBody ());
32
32
}
33
33
34
- public function testCustomAttribute ()
34
+ public function testCustomAttribute (): void
35
35
{
36
36
$ response = Dispatcher::run (
37
37
[
You can’t perform that action at this time.
0 commit comments