Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,22 @@
],
"require": {
"php": "^8.3",
"illuminate/contracts": "^11.0||^10.0",
"illuminate/contracts": "^12.0||^11.4||^10.0",
"soap/laravel-omise": "^1.1",
"spatie/laravel-package-tools": "^1.16",
"spatie/laravel-webhook-client": "^3.0"
},
"require-dev": {
"laravel/pint": "^1.14",
"nunomaduro/collision": "^8.1.1||^7.10.0",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0.0||^8.22.0",
"larastan/larastan": "^2.9||^3.0",
"orchestra/testbench": "^10.0||^9.0.0||^8.22.0",
"pestphp/pest": "^3.0||^2.0",
"pestphp/pest-plugin-arch": "^3.0||^2.0",
"pestphp/pest-plugin-laravel": "^3.0||^2.0",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-deprecation-rules": "^1.1||^2.0",
"phpstan/phpstan-phpunit": "^1.3||^2.0",
"spatie/laravel-ray": "^1.35"
},
"autoload": {
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ parameters:
tmpDir: build/phpstan
checkOctaneCompatibility: true
checkModelProperties: true
ignoreErrors:
-
message: "#Called 'env' outside of the config directory#"
path: config/omise-webhooks.php
3 changes: 2 additions & 1 deletion src/OmiseSignatureValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Soap\OmiseWebhooks;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Http;
use Spatie\WebhookClient\SignatureValidator\SignatureValidator;
use Spatie\WebhookClient\WebhookConfig;

Expand All @@ -23,7 +24,7 @@ public function isValid(Request $request, WebhookConfig $config): bool
return false;
}

protected function getWebhookIps(): string
protected function getWebhookIps(): array
{
$defindedIps = [
'54.169.118.227',
Expand Down