diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index c84c18d..9f738e6 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest ] - php: [ 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1 ] + php: [ 8.1, 8.2 ] dependency-version: [ prefer-stable ] name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }} diff --git a/.gitignore b/.gitignore index 0c234e2..58e8fd5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /phpunit.xml /composer.lock /.phpunit.result.cache +/.phpunit.cache diff --git a/README.md b/README.md index a887bcf..15e6484 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ This can be read by PHP, usually with the `$_SERVER["HTTP_ACCEPT_LANGUAGE"]` var ## Requirements -- PHP >= 7.0 +- PHP >= 8.1 ## Install @@ -39,7 +39,7 @@ $browser = new \CodeZero\BrowserLocale\BrowserLocale($_SERVER["HTTP_ACCEPT_LANGU For Laravel: -Laravel >= 5.5 will automatically register the ServiceProvider so you can get `BrowserLocale` from the IOC container. +Laravel will automatically register the ServiceProvider so you can get `BrowserLocale` from the IOC container. ```php $browser = \App::make(\CodeZero\BrowserLocale\BrowserLocale::class); diff --git a/composer.json b/composer.json index 6107c3b..3d5b7eb 100644 --- a/composer.json +++ b/composer.json @@ -18,12 +18,12 @@ } ], "require": { - "php": "^7.0|^8.0" + "php": "^8.1" }, "require-dev": { - "illuminate/support": "^5.5|^6.0|^7.0|^8.0|^9.0|^10.0", + "illuminate/support": "^10.0|^11.0", "mockery/mockery": "^1.3.3", - "phpunit/phpunit": "^6.0|^7.0|^8.0|^9.0" + "phpunit/phpunit": "^10.5" }, "scripts": { "test": "phpunit" @@ -48,10 +48,7 @@ "config": { "preferred-install": "dist", "sort-packages": true, - "optimize-autoloader": true, - "allow-plugins": { - "kylekatarnls/update-helper": true - } + "optimize-autoloader": true }, "minimum-stability": "stable", "prefer-stable": true diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 6ea2fd6..f23ffad 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,24 +1,24 @@ - + stopOnFailure="false" + xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" + cacheDirectory=".phpunit.cache" + backupStaticProperties="false"> ./tests - - + + ./src - - ./src/Laravel/BrowserLocaleServiceProvider.php - - - + + + ./src/Laravel/BrowserLocaleServiceProvider.php + +