From b6b9f4f1120cb5cfbebfc2dc9bf59ef1191cfe38 Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Sat, 2 Dec 2023 19:25:55 -0500 Subject: [PATCH] Update to accept Laravel 11 and PHPUnit 10 --- .gitignore | 1 + composer.json | 12 ++++++------ phpunit.xml.dist | 10 +++++++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index da5ec4b46..da248ba1f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ composer.lock vendor tests/temp .idea +.phpunit.cache .phpunit.result.cache .php-cs-fixer.cache tests/CreatePermissionCustomTables.php diff --git a/composer.json b/composer.json index e7af6faa2..ab0515b8e 100644 --- a/composer.json +++ b/composer.json @@ -23,15 +23,15 @@ "homepage": "https://github.com/spatie/laravel-permission", "require": { "php": "^8.0", - "illuminate/auth": "^8.12|^9.0|^10.0", - "illuminate/container": "^8.12|^9.0|^10.0", - "illuminate/contracts": "^8.12|^9.0|^10.0", - "illuminate/database": "^8.12|^9.0|^10.0" + "illuminate/auth": "^8.12|^9.0|^10.0|^11.0", + "illuminate/container": "^8.12|^9.0|^10.0|^11.0", + "illuminate/contracts": "^8.12|^9.0|^10.0|^11.0", + "illuminate/database": "^8.12|^9.0|^10.0|^11.0" }, "require-dev": { "laravel/passport": "^11.0", - "orchestra/testbench": "^6.23|^7.0|^8.0", - "phpunit/phpunit": "^9.4" + "orchestra/testbench": "^6.23|^7.0|^8.0|^9.0", + "phpunit/phpunit": "^9.4|^10.1" }, "minimum-stability": "dev", "prefer-stable": true, diff --git a/phpunit.xml.dist b/phpunit.xml.dist index bd9254886..96497e656 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,10 +1,14 @@ - - + + src/ - + tests