From 39744c219b075cda9172b0546bdc5325b1ffb3bb Mon Sep 17 00:00:00 2001 From: SergiuBota Date: Wed, 29 Nov 2023 17:48:02 +0200 Subject: [PATCH] support for php 8.3 --- .github/workflows/codecov.yml | 1 + .github/workflows/cs-tests.yml | 1 + .github/workflows/static-analysis.yml | 1 + .github/workflows/unit-tests.yml | 1 + README.md | 2 +- composer.json | 6 +++--- src/Options/AuthorizationOptions.php | 4 ++++ 7 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index bb5937d..e21f78b 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -17,6 +17,7 @@ jobs: php: - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/cs-tests.yml b/.github/workflows/cs-tests.yml index e4032b1..e8bbade 100644 --- a/.github/workflows/cs-tests.yml +++ b/.github/workflows/cs-tests.yml @@ -17,6 +17,7 @@ jobs: php: - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 134ff5b..6f7452d 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -17,6 +17,7 @@ jobs: php: - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 593bed9..8f6f990 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -17,6 +17,7 @@ jobs: php: - "8.1" - "8.2" + - "8.3" steps: - name: Checkout diff --git a/README.md b/README.md index 71836a7..e43b6e6 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ The RBAC model defines roles that can be assigned to users. The authorization is Each role can have one or multiple permissions/privileges assigned. When deciding if a user is authorized, the requested permission is checked in all user roles and if at least one role has that permission, access is granted. ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-rbac) -![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-rbac/3.5.0) +![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-rbac/3.5.2) [![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-rbac)](https://github.com/dotkernel/dot-rbac/issues) [![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-rbac)](https://github.com/dotkernel/dot-rbac/network) diff --git a/composer.json b/composer.json index 2965d2c..bb3a146 100644 --- a/composer.json +++ b/composer.json @@ -22,11 +22,11 @@ } }, "require": { - "php": "~8.1.0 || ~8.2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "laminas/laminas-servicemanager": "^3.11", - "dotkernel/dot-authorization": "^3.2", + "dotkernel/dot-authorization": "^3.4.1", "laminas/laminas-stdlib": "^3.7", - "laminas/laminas-authentication": "2.15.0" + "laminas/laminas-authentication": "2.16.0" }, "require-dev": { "phpunit/phpunit": "^10.2", diff --git a/src/Options/AuthorizationOptions.php b/src/Options/AuthorizationOptions.php index d40309f..e76d0d5 100644 --- a/src/Options/AuthorizationOptions.php +++ b/src/Options/AuthorizationOptions.php @@ -6,6 +6,10 @@ use Laminas\Stdlib\AbstractOptions; +/** + * @template TValue + * @template-extends AbstractOptions + */ class AuthorizationOptions extends AbstractOptions { protected string $guestRole = 'guest';