Skip to content

Commit 31a88a4

Browse files
committed
build(deps): bump dependencies to most recent versions, fix 8.5 deprections, keep php 8.1 compatibility and add workflow to run tests using php 8.1-8.5
WE2-919 Signed-off-by: Sven Mitt <svenzik@users.noreply.github.com>
1 parent 44d4a95 commit 31a88a4

21 files changed

Lines changed: 51 additions & 58 deletions

.github/workflows/php.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17+
strategy:
18+
matrix:
19+
php-version: [ '8.1', '8.2', '8.3', '8.4', '8.5' ]
20+
1721
steps:
1822
- uses: actions/checkout@v4
1923

2024
- uses: shivammathur/setup-php@v2
2125
with:
22-
php-version: '8.2'
26+
php-version: ${{ matrix.php-version }}
2327

2428
- name: Validate composer.json and composer.lock
2529
run: composer validate --strict
@@ -29,9 +33,9 @@ jobs:
2933
uses: actions/cache@v4
3034
with:
3135
path: vendor
32-
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
36+
key: ${{ runner.os }}-php-${{ matrix.php-version }}-${{ hashFiles('**/composer.lock') }}
3337
restore-keys: |
34-
${{ runner.os }}-php-
38+
${{ runner.os }}-php-${{ matrix.php-version }}-
3539
3640
- name: Install dependencies
3741
run: composer install --prefer-dist --no-progress

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require-dev": {
13-
"phpunit/phpunit": "^10.5"
13+
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.5 || ^13"
1414
},
1515
"autoload": {
1616
"psr-4": {
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"require": {
29-
"php": "^8.1.0",
29+
"php": ">=8.1",
3030
"phpseclib/phpseclib": "^3.0.0",
3131
"guzzlehttp/psr7": "^2.6.0",
3232
"psr/log": "^3.0.0"

composer.lock

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/composer.lock

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/exceptions/AuthTokenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ abstract class AuthTokenException extends Exception
3838
* @param int $code — [optional] The Exception code
3939
* @param \Throwable|null $cause
4040
*/
41-
public function __construct($message, Throwable $cause = null)
41+
public function __construct($message, ?Throwable $cause = null)
4242
{
4343

4444
if (is_null($cause)) {

src/exceptions/AuthTokenParseException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
class AuthTokenParseException extends AuthTokenException
3232
{
33-
public function __construct(string $message, Throwable $cause = null)
33+
public function __construct(string $message, ?Throwable $cause = null)
3434
{
3535
parent::__construct($message, $cause);
3636
}

src/exceptions/CertificateNotTrustedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
class CertificateNotTrustedException extends AuthTokenException
3434
{
3535

36-
public function __construct(X509 $certificate, Throwable $cause = null)
36+
public function __construct(X509 $certificate, ?Throwable $cause = null)
3737
{
3838
parent::__construct("Certificate " . $certificate->getSubjectDN(X509::DN_STRING) . " is not trusted", $cause);
3939
}

src/exceptions/OCSPCertificateException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
*/
3434
class OCSPCertificateException extends AuthTokenException
3535
{
36-
public function __construct(string $message, Throwable $exception = null)
36+
public function __construct(string $message, ?Throwable $exception = null)
3737
{
3838
parent::__construct($message, $exception);
3939
}

src/exceptions/UserCertificateOCSPCheckFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class UserCertificateOCSPCheckFailedException extends AuthTokenException
3333
{
34-
public function __construct(string $message, Throwable $cause = null)
34+
public function __construct(string $message, ?Throwable $cause = null)
3535
{
3636
parent::__construct("User certificate revocation check has failed: " . $message, $cause);
3737
}

src/exceptions/UserCertificateRevokedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
class UserCertificateRevokedException extends AuthTokenException
3333
{
34-
public function __construct(string $message = null)
34+
public function __construct(?string $message = null)
3535
{
3636
if (is_null($message)) {
3737
parent::__construct("User certificate has been revoked");

0 commit comments

Comments
 (0)