Skip to content

Commit

Permalink
Merge pull request #7 from bowphp/chore/package
Browse files Browse the repository at this point in the history
chore: upgrade phpunit
  • Loading branch information
papac authored Dec 12, 2024
2 parents b8fbfca + c897f8f commit a0758e0
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 a0758e0

Please sign in to comment.