diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 09ec837..d65d5cd 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: true matrix: - php: [8.2, 8.3, 8.4] + php: [8.3, 8.4] steps: - name: Checkout code diff --git a/composer.json b/composer.json index 3358c42..921109d 100644 --- a/composer.json +++ b/composer.json @@ -22,20 +22,20 @@ "minimum-stability": "dev", "prefer-stable": true, "require": { - "php": "^8.2", - "guzzlehttp/guzzle": "^7.4", + "php": "^8.3", + "guzzlehttp/guzzle": "^7.8", "league/omnipay": "^3.2", "omnipay/common": "^3.2", - "illuminate/contracts": "^9.25|^10.0|^11.0" + "illuminate/contracts": "^11.0|^12.0" }, "require-dev": { - "guzzlehttp/psr7": "^1", + "guzzlehttp/psr7": "^1|^2", "omnipay/tests": "^4.1", - "phpunit/phpunit": "^9.5|^10.0|^10.5", - "orchestra/testbench": "^7.0|^8.0|^9.0", - "friendsofphp/php-cs-fixer": "^3.10", - "phpstan/phpstan": "^1.8", - "nunomaduro/larastan": "^2.1" + "phpunit/phpunit": "^10.5|^11.5", + "orchestra/testbench": "^9.0|^10.0", + "friendsofphp/php-cs-fixer": "^3.75", + "phpstan/phpstan": "^2.1", + "larastan/larastan": "^3.0" }, "extra": { "laravel": { diff --git a/phpstan.neon.dist b/phpstan.neon.dist index c27661a..c149b77 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -1,5 +1,5 @@ includes: - - ./vendor/nunomaduro/larastan/extension.neon + - ./vendor/larastan/larastan/extension.neon parameters: @@ -10,7 +10,5 @@ parameters: # The level 9 is the highest level level: 5 - checkMissingIterableValueType: false - ignoreErrors: - '#Property Omnipay\\OfflineDummy\\Tests.* \(Omnipay\\OfflineDummy\\Gateway\) does not accept Omnipay\\Common\\GatewayInterface.#' \ No newline at end of file diff --git a/src/App/Http/Controllers/PaymentController.php b/src/App/Http/Controllers/PaymentController.php index 7b0dfc0..2758be9 100644 --- a/src/App/Http/Controllers/PaymentController.php +++ b/src/App/Http/Controllers/PaymentController.php @@ -16,7 +16,7 @@ public function __invoke(Request $request) 'amount' => 'required|numeric', ]); - return view('omnipay-offline-dummy::payment', [ + return response()->view('omnipay-offline-dummy::payment', [ 'transactionId' => $request->input('transaction_id'), 'description' => $request->input('description'), 'amount' => $request->input('amount'),