Skip to content

Commit be8a150

Browse files
authored
Merge pull request #8 from veewee/PHP82
Add PHP82 + PSL2 Support
2 parents 17d7862 + a1e2000 commit be8a150

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

.github/workflows/analyzers.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1']
10+
php-versions: ['8.1', '8.2']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.github/workflows/code-style.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1']
10+
php-versions: ['8.1', '8.2']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.github/workflows/tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1']
10+
php-versions: ['8.1', '8.2']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.phive/phars.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="psalm" version="^4.13.1" installed="4.22.0" location="./tools/psalm.phar" copy="true"/>
4-
<phar name="php-cs-fixer" version="^3.3.2" installed="3.3.2" location="./tools/php-cs-fixer.phar" copy="true"/>
3+
<phar name="psalm" version="^4.30.0" installed="4.30.0" location="./tools/psalm.phar" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.13.0" installed="3.13.0" location="./tools/php-cs-fixer.phar" copy="true"/>
55
</phive>

composer.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,21 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.1",
22+
"php": "~8.1.0 || ~8.2.0",
2323
"ext-dom": "*",
2424
"ext-openssl": "*",
25-
"azjezz/psl": "^1.9",
25+
"azjezz/psl": "^2.1",
2626
"paragonie/hidden-string": "^2.0",
27-
"php-soap/psr18-transport": "^1.2.1",
28-
"php-soap/engine": "^1.0",
29-
"php-soap/xml": "^1.3.1",
27+
"php-soap/psr18-transport": "^1.3",
28+
"php-soap/engine": "^1.3",
29+
"php-soap/xml": "^1.4",
3030
"php-http/client-common": "^2.3",
3131
"robrichards/wse-php": "^2.0",
32-
"veewee/xml": "^1.5"
32+
"veewee/xml": "^2.2"
3333
},
3434
"require-dev": {
35-
"nyholm/psr7": "^1.3",
36-
"php-http/mock-client": "^1.4",
35+
"nyholm/psr7": "^1.5",
36+
"php-http/mock-client": "^1.5",
3737
"symfony/http-client": "^6.1",
3838
"phpunit/phpunit": "^9.5",
3939
"cweagans/composer-patches": "^1.7"

src/WSSecurity/KeyStore/Certificate.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Soap\Psr18WsseMiddleware\WSSecurity\KeyStore;
55

66
use ParagonIE\HiddenString\HiddenString;
7-
use function Psl\Filesystem\read_file;
7+
use function Psl\File\read;
88

99
final class Certificate implements KeyInterface
1010
{
@@ -17,9 +17,12 @@ public function __construct(string $key)
1717
$this->passphrase = new HiddenString('');
1818
}
1919

20+
/**
21+
* @param non-empty-string $file
22+
*/
2023
public static function fromFile(string $file): self
2124
{
22-
return new self(read_file($file));
25+
return new self(read($file));
2326
}
2427

2528
public function withPassphrase(string $passphrase): self

src/WSSecurity/KeyStore/Key.php

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Soap\Psr18WsseMiddleware\WSSecurity\KeyStore;
55

66
use ParagonIE\HiddenString\HiddenString;
7-
use function Psl\Filesystem\read_file;
7+
use function Psl\File\read;
88

99
final class Key implements KeyInterface
1010
{
@@ -17,9 +17,12 @@ public function __construct(string $key)
1717
$this->passphrase = new HiddenString('');
1818
}
1919

20+
/**
21+
* @param non-empty-string $file
22+
*/
2023
public static function fromFile(string $file): self
2124
{
22-
return new self(read_file($file));
25+
return new self(read($file));
2326
}
2427

2528
public function withPassphrase(string $passphrase): self

tools/php-cs-fixer.phar

164 KB
Binary file not shown.

tools/psalm.phar

317 KB
Binary file not shown.

0 commit comments

Comments
 (0)