From d31b59b4069bd2f1455c90f8c70db176b63fb903 Mon Sep 17 00:00:00 2001 From: Dexter Enrick Edep Date: Fri, 27 Sep 2024 08:21:31 +0000 Subject: [PATCH 1/3] Update for laravel 11 --- composer.json | 8 ++++---- src/Facades/ConfigCat.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index caf5663..d38e473 100644 --- a/composer.json +++ b/composer.json @@ -17,13 +17,13 @@ } ], "require": { - "php": ">=8.1", + "php": ">=8.2", "configcat/configcat-client": "^9.0", - "illuminate/contracts": "^10.0" + "illuminate/contracts": "^11.0" }, "require-dev": { - "orchestra/testbench": "^8.0", - "phpunit/phpunit": "^9.6", + "orchestra/testbench": "^9.0", + "phpunit/phpunit": "^10.5", "mockery/mockery": "^1.6.7" }, "autoload": { diff --git a/src/Facades/ConfigCat.php b/src/Facades/ConfigCat.php index d0febd7..f578ed2 100644 --- a/src/Facades/ConfigCat.php +++ b/src/Facades/ConfigCat.php @@ -46,7 +46,7 @@ public static function fake(array $flagsToFake = []): ConfigCatFake return $fake; } - protected static function isFake(): bool + public static function isFake(): bool { $name = static::getFacadeAccessor(); From 190377642b6612b4c8168a04f7fc75bae3a5d073 Mon Sep 17 00:00:00 2001 From: Clem Blanco Date: Tue, 17 Dec 2024 09:01:39 +0100 Subject: [PATCH 2/3] WIP --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index c4ffc10..7acaed6 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,18 @@ You can install the package via composer: composer require pod-point/laravel-configcat ``` +For Laravel 10.x + +```bash +composer require pod-point/laravel-mail-export:^4.0 +``` + +For Laravel 5.4 up to 9.x + +```bash +composer require pod-point/laravel-mail-export:^3.0 +``` + ### Publishing the config file Next, you should publish the Laravel package configuration file using the `vendor:publish` Artisan command. It will be placed in your application's config directory: From 97b24bb8b5882d3267794fc275feeb784b6307ac Mon Sep 17 00:00:00 2001 From: Clem Blanco Date: Tue, 17 Dec 2024 09:04:54 +0100 Subject: [PATCH 3/3] WIP --- .github/workflows/run-tests.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 5b50007..2131455 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,19 +9,8 @@ on: jobs: test: runs-on: ubuntu-latest - strategy: - fail-fast: true - matrix: - php: [8.1] - laravel: [10.*] - exclude: - - php: 8.1 - laravel: 10.* - include: - - laravel: 10.* - testbench: 8.* - - name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} + + name: PHP 8.2 - Laravel 11.* steps: - name: Checkout code @@ -31,18 +20,18 @@ jobs: uses: actions/cache@v2 with: path: ~/.composer/cache/files - key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }} + key: dependencies-laravel-11-php-8.2-composer-${{ hashFiles('composer.json') }} - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: ${{ matrix.php }} + php-version: 8.2 extensions: dom, curl, libxml, mbstring, zip coverage: none - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:11.*" "orchestra/testbench:9.*" --no-interaction --no-update composer update --prefer-dist --no-interaction --no-progress - name: Execute tests