From 2001419403c3056c176bd84557fa9fbd6d23e449 Mon Sep 17 00:00:00 2001 From: Ivan Vermeyen Date: Tue, 12 Mar 2024 16:16:40 +0100 Subject: [PATCH] Support only Laravel 10, 11 and newer --- .github/workflows/run-tests.yml | 29 ++++++----------------------- .gitignore | 1 + README.md | 6 +++--- composer.json | 10 +++++----- phpunit.xml.dist | 22 +++++++++++----------- 5 files changed, 26 insertions(+), 42 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 7ac13b8..c988c23 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -8,34 +8,17 @@ jobs: strategy: fail-fast: true matrix: - php: [ 8.0, 8.1 ] - laravel: [ 8.*, 9.*, 10.* ] + php: [ 8.1, 8.2, 8.3 ] + laravel: [ 10.*, 11.* ] dependency-version: [ prefer-stable ] include: - - laravel: 6.* - php: 7.2 - testbench: 4.* - - laravel: 6.* - php: 8.0 - testbench: 4.* - - laravel: 7.* - php: 7.2 - testbench: 5.* - - laravel: 7.* - php: 8.0 - testbench: 5.* - - laravel: 8.* - php: 7.3 - testbench: 6.* - - laravel: 8.* - testbench: 6.* - - laravel: 9.* - testbench: 7.* - laravel: 10.* testbench: 8.* + - laravel: 11.* + testbench: 9.* exclude: - - laravel: 10.* - php: 8.0 + - laravel: 11.* + php: 8.1 name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} diff --git a/.gitignore b/.gitignore index a961713..86e1b39 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.lock phpunit.xml .phpunit.result.cache +.phpunit.cache diff --git a/README.md b/README.md index 875005f..06099a3 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Flash Notifications for Laravel [![GitHub release](https://img.shields.io/github/release/codezero-be/laravel-flash.svg?style=flat-square)](https://github.com/codezero-be/laravel-flash/releases) -[![Laravel](https://img.shields.io/badge/laravel-10-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com) +[![Laravel](https://img.shields.io/badge/laravel-11-red?style=flat-square&logo=laravel&logoColor=white)](https://laravel.com) [![License](https://img.shields.io/packagist/l/codezero/laravel-flash.svg?style=flat-square)](LICENSE.md) [![Build Status](https://img.shields.io/github/actions/workflow/status/codezero-be/laravel-flash/run-tests.yml?style=flat-square&logo=github&logoColor=white&label=tests)](https://github.com/codezero-be/laravel-flash/actions) [![Code Coverage](https://img.shields.io/codacy/coverage/22d50bd2782540bb806f576966a5f5d5/master?style=flat-square)](https://app.codacy.com/gh/codezero-be/laravel-flash) @@ -19,8 +19,8 @@ ## ✅ Requirements -- PHP >= 7.2 -- Laravel >= 6.0 +- PHP >= 8.1 +- Laravel >= 10.0 ## 📦 Install diff --git a/composer.json b/composer.json index 83b38c0..d01c74e 100644 --- a/composer.json +++ b/composer.json @@ -16,13 +16,13 @@ } ], "require": { - "php": "^7.2|^8.0", - "illuminate/session": "^6.0|^7.0|^8.0|^9.0|^10.0", - "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0" + "php": "^8.1", + "illuminate/session": "^10.0|^11.0", + "illuminate/support": "^10.0|^11.0" }, "require-dev": { - "orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0", - "phpunit/phpunit": "^8.0|^9.0" + "orchestra/testbench": "^8.0|^9.0", + "phpunit/phpunit": "^10.5" }, "scripts": { "test": "phpunit" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 991a47f..b2b9d9d 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,27 +1,27 @@ - + stopOnFailure="false" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" + cacheDirectory=".phpunit.cache" + backupStaticProperties="false"> ./tests - - - ./src - - + + + ./src + +