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 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: 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();