From c897f8fc33f65fe51c95c2ae5a2cde7c71288618 Mon Sep 17 00:00:00 2001 From: Franck DAKIA Date: Thu, 12 Dec 2024 08:53:01 +0000 Subject: [PATCH] chore: upgrade phpunit --- composer.json | 4 ++-- config/helper.php | 2 +- tests/PolicierTest.php | 7 ------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/composer.json b/composer.json index 722d458..0beeeff 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["JWT", "Json Web Token", "Policier", "Franck DAKIA", "Policier PHP", "PHP JWT", "FranckDakia", "Papac"], "require": { "lcobucci/jwt": "v3.2.5", - "php": "^8.0" + "php": "^8" }, "autoload": { "psr-4": { @@ -24,7 +24,7 @@ ], "minimum-stability": "stable", "require-dev": { - "phpunit/phpunit": "^8" + "phpunit/phpunit": "^9" }, "extra": { "laravel": { diff --git a/config/helper.php b/config/helper.php index ebd2fd2..48a10f8 100644 --- a/config/helper.php +++ b/config/helper.php @@ -13,7 +13,7 @@ */ function policier($action = null, ...$args) { - if (class_exists(\App::class)) { + if (function_exists('app')) { $policier = app('policier'); } else { $policier = Policier::getInstance(); diff --git a/tests/PolicierTest.php b/tests/PolicierTest.php index 6334065..0209b6a 100644 --- a/tests/PolicierTest.php +++ b/tests/PolicierTest.php @@ -9,13 +9,6 @@ class PolicierTest extends \PHPUnit\Framework\TestCase */ private $policier; - /** - * The id information - * - * @var int - */ - private $id; - /** * On setUp */