File tree Expand file tree Collapse file tree 5 files changed +44
-36
lines changed Expand file tree Collapse file tree 5 files changed +44
-36
lines changed Original file line number Diff line number Diff line change 77 runs-on : ubuntu-latest
88
99 steps :
10- - uses : actions/checkout@v2
10+ - uses : actions/checkout@v3
1111
1212 - name : Cache Composer dependencies
13- uses : actions/cache@v2
13+ uses : actions/cache@v3
1414 with :
1515 path : /tmp/composer-cache
1616 key : ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1717
18- - uses : php-actions/composer@v5
18+ - name : Composer
19+ uses : php-actions/composer@v6
20+ with :
21+ php_version : ' 8.1'
1922
2023 - name : Archive build
2124 run : mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
2225
2326 - name : Upload build archive for test runners
24- uses : actions/upload-artifact@v2
27+ uses : actions/upload-artifact@v3
2528 with :
2629 name : build-artifact
2730 path : /tmp/github-actions
3134 needs : [composer]
3235
3336 steps :
34- - uses : actions/download-artifact@v2
37+ - uses : actions/download-artifact@v3
3538 with :
3639 name : build-artifact
3740 path : /tmp/github-actions
4245 - name : PHP Unit tests
4346 uses : php-actions/phpunit@v3
4447 with :
45- php_version : 8.0
48+ php_version : ' 8.1 '
4649 php_extensions : xdebug
4750 memory_limit : 256M
4851 configuration : test/phpunit/phpunit.xml
5356 needs : [composer]
5457
5558 steps :
56- - uses : actions/download-artifact@v2
59+ - uses : actions/download-artifact@v3
5760 with :
5861 name : build-artifact
5962 path : /tmp/github-actions
6467 - name : PHP Static Analysis
6568 uses : php-actions/phpstan@v3
6669 with :
70+ php_version : ' 8.1'
6771 path : src/
6872 level : 6
Original file line number Diff line number Diff line change 11build :
22 environment :
3- php : 8.0 .0
3+ php : 8.1 .0
44
55 nodes :
66 analysis :
@@ -29,4 +29,4 @@ checks:
2929filter :
3030 excluded_paths :
3131 - test/*
32- - vendor/*
32+ - vendor/*
Original file line number Diff line number Diff line change 44 "license" : " MIT" ,
55
66 "require" : {
7- "php" : " >=8.0 " ,
7+ "php" : " >=8.1 " ,
88 "phpgt/input" : " ^v1" ,
99 "psr/http-message" : " ^v1.0.1" ,
1010 "willdurand/negotiation" : " v3.1.0"
Original file line number Diff line number Diff line change 55use Psr \Http \Message \StreamInterface ;
66
77trait Message {
8- protected Headers $ headers ;
8+ public readonly Headers $ headers ;
99 protected string $ protocol ;
1010 protected StreamInterface $ stream ;
1111
@@ -17,7 +17,7 @@ trait Message {
1717 * @return string HTTP protocol version.
1818 */
1919 public function getProtocolVersion ():string {
20- if (strstr ($ this ->protocol , "/ " )) {
20+ if (str_contains ($ this ->protocol , "/ " )) {
2121 return substr (
2222 $ this ->protocol ,
2323 strpos ($ this ->protocol , "/ " ) + 1
@@ -41,7 +41,7 @@ public function getProtocolVersion():string {
4141 * @return static
4242 * @throws InvalidProtocolHttpException
4343 */
44- public function withProtocolVersion ($ version ) {
44+ public function withProtocolVersion ($ version ): self {
4545 if (!is_numeric ($ version )) {
4646 throw new InvalidProtocolHttpException ($ version );
4747 }
You can’t perform that action at this time.
0 commit comments