Skip to content

Commit

Permalink
chore: upgrade phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Dec 12, 2024
1 parent b8fbfca commit c897f8f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -24,7 +24,7 @@
],
"minimum-stability": "stable",
"require-dev": {
"phpunit/phpunit": "^8"
"phpunit/phpunit": "^9"
},
"extra": {
"laravel": {
Expand Down
2 changes: 1 addition & 1 deletion config/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
7 changes: 0 additions & 7 deletions tests/PolicierTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ class PolicierTest extends \PHPUnit\Framework\TestCase
*/
private $policier;

/**
* The id information
*
* @var int
*/
private $id;

/**
* On setUp
*/
Expand Down

0 comments on commit c897f8f

Please sign in to comment.