From a857578df3880f34fc9ed9b52369adbb251f12d2 Mon Sep 17 00:00:00 2001 From: Laravel Shift Date: Wed, 15 Feb 2023 20:47:23 -0500 Subject: [PATCH] Laravel 10.x Compatibility (#64) Co-authored-by: Michael Dyrynda --- .github/workflows/run-tests.yml | 9 +---- composer.json | 70 ++++++++++++++++----------------- phpunit.xml.dist | 14 +------ 3 files changed, 38 insertions(+), 55 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 311cff7..0abaed9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,13 +12,8 @@ jobs: strategy: fail-fast: true matrix: - php: [8.1,8.0, 7.4, 7.3] - laravel: [^8.12, ^9.0] - exclude: - - php: 7.3 - laravel: '^9.0' - - php: 7.4 - laravel: '^9.0' + php: [8.2, 8.1] + laravel: [10.0] name: P${{ matrix.php }} - L${{ matrix.laravel }} diff --git a/composer.json b/composer.json index 7e1261e..ba4a2ab 100644 --- a/composer.json +++ b/composer.json @@ -1,38 +1,38 @@ { - "name": "dyrynda/laravel-cascade-soft-deletes", - "description": "Cascading deletes for Eloquent models that implement soft deletes", - "type": "utility", - "require": { - "php": "^7.3|^8.0", - "illuminate/database": "^8.12|^9.0", - "illuminate/events": "^8.12|^9.0" - }, - "require-dev": { - "phpunit/phpunit": "^9.3" - }, - "autoload": { - "psr-4": { - "Dyrynda\\Database\\Support\\": "src/" + "name": "dyrynda/laravel-cascade-soft-deletes", + "description": "Cascading deletes for Eloquent models that implement soft deletes", + "type": "utility", + "require": { + "php": "^8.1", + "illuminate/database": "^10.0", + "illuminate/events": "^10.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.6 || ^10.0" + }, + "autoload": { + "psr-4": { + "Dyrynda\\Database\\Support\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "Tests\\": "tests/" + } + }, + "license": "MIT", + "authors": [ + { + "name": "Michael Dyrynda", + "email": "michael@dyrynda.com.au", + "homepage": "https://dyrynda.com.au" + } + ], + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "extra": { + "sort-packages": true + } } - }, - "autoload-dev": { - "psr-4": { - "Tests\\": "tests/" - } - }, - "license": "MIT", - "authors": [ - { - "name": "Michael Dyrynda", - "email": "michael@dyrynda.com.au", - "homepage": "https://dyrynda.com.au" - } - ], - "minimum-stability": "dev", - "prefer-stable": true, - "config": { - "extra": { - "sort-packages": true - } - } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index fa96352..1baf874 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,17 +1,5 @@ - + app/