From 0ea8f8d82b4a054095b85325bc7067c4e31cdd17 Mon Sep 17 00:00:00 2001 From: Italo Israel Baeza Cabrera Date: Wed, 22 Feb 2023 01:33:10 -0300 Subject: [PATCH] Initial PHP 8.2, Laravel 10 support. --- .github/workflows/php.yml | 8 +++++++- .gitignore | 1 + composer.json | 36 +++++++++++++----------------------- 3 files changed, 21 insertions(+), 24 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index b7bcd8f..ef3cda1 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -52,11 +52,16 @@ jobs: php-version: - "8.0" - "8.1" + - "8.2" laravel-constrain: - "9.*" + - "10.*" dependencies: - "lowest" - "highest" + exclude: + - laravel-constrain: "10.*" + php-version: "8.0" steps: - name: "Set up PHP" uses: "shivammathur/setup-php@v2" @@ -77,7 +82,7 @@ jobs: run: "composer run-script test" - name: "Upload coverage to Codecov" - uses: "codecov/codecov-action@v2" + uses: "codecov/codecov-action@v3" static_analysis: name: "3️⃣ Static Analysis" @@ -91,6 +96,7 @@ jobs: with: tools: "phpstan" php-version: "latest" + coverage: "none" - name: "Checkout code" uses: "actions/checkout@v3" diff --git a/.gitignore b/.gitignore index 3614327..3696efe 100644 --- a/.gitignore +++ b/.gitignore @@ -4,5 +4,6 @@ /.vscode .php-cs-fixer.cache .phpunit.result.cache +.phpunit.cache composer.lock phpunit.xml.bak diff --git a/composer.json b/composer.json index 07add5d..f11bbe6 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,7 @@ "name": "Italo Israel Baeza Cabrera", "email": "DarkGhostHunter@Gmail.com", "role": "Developer", - "homepage": "https://patreon.com/packagesforlaravel" + "homepage": "https://github.com/sponsors/DarkGhostHunter" } ], "support": { @@ -32,22 +32,20 @@ "issues": "https://github.com/Laragear/TwoFactor/issues" }, "require": { - "php": ">=8.0.2", + "php": "8.*", "ext-openssl": "*", "ext-json": "*", - "illuminate/auth": "9.*", - "illuminate/http": "9.*", - "illuminate/session": "9.*", - "illuminate/support": "9.*", - "illuminate/config": "9.*", - "illuminate/database": "9.*", - "illuminate/encryption": "9.*" + "illuminate/auth": "9.*|10.*", + "illuminate/http": "9.*|10.*", + "illuminate/session": "9.*|10.*", + "illuminate/support": "9.*|10.*", + "illuminate/config": "9.*|10.*", + "illuminate/database": "9.*|10.*", + "illuminate/encryption": "9.*|10.*" }, "require-dev": { - "orchestra/testbench": "7.*", - "phpunit/phpunit": "^9.5", - "mockery/mockery": "^1.5", - "jetbrains/phpstorm-attributes": "^1.0" + "orchestra/testbench": "^7.22|8.*", + "jetbrains/phpstorm-attributes": "*" }, "autoload": { "psr-4": { @@ -76,16 +74,8 @@ }, "funding": [ { - "type": "Patreon", - "url": "https://patreon.com/PackagesForLaravel" - }, - { - "type": "Ko-Fi", - "url": "https://ko-fi.com/DarkGhostHunter" - }, - { - "type": "Buy me a cofee", - "url": "https://www.buymeacoffee.com/darkghosthunter" + "type": "Github Sponsorship", + "url": "https://github.com/sponsors/DarkGhostHunter" }, { "type": "Paypal",