diff --git a/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php b/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php
index 932f7cdcc613..6d3e2588ff76 100644
--- a/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php
+++ b/app/PaymentDrivers/PayPal/PayPalBasePaymentDriver.php
@@ -180,10 +180,11 @@ class PayPalBasePaymentDriver extends BaseDriver
}
+ //@todo turn this back on when PayPal.....
public function getClientHash()
{
- nlog($this->client->present()->name());
-
+ return '';
+
/** @var \App\Models\ClientGatewayToken $cgt */
$cgt = ClientGatewayToken::where('company_gateway_id', $this->company_gateway->id)
->where('client_id', $this->client->id)
diff --git a/composer.json b/composer.json
index e9ba02ae5bc1..c5aa5340a417 100644
--- a/composer.json
+++ b/composer.json
@@ -117,7 +117,7 @@
"larastan/larastan": "^2",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
- "phpstan/phpstan": "^1.9",
+ "phpstan/phpstan": "^1.11",
"phpunit/phpunit": "^10",
"spatie/laravel-ignition": "^2.0",
"spaze/phpstan-stripe": "^3.0"
diff --git a/composer.lock b/composer.lock
index c90d6060998a..0d5f7c627536 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "a52dad71889f0bfe78dca5f02e7373c5",
+ "content-hash": "3a4f9e64fb5fae2cd0f6735badfd3224",
"packages": [
{
"name": "adrienrn/php-mimetyper",
@@ -1385,16 +1385,16 @@
},
{
"name": "aws/aws-sdk-php",
- "version": "3.314.0",
+ "version": "3.314.1",
"source": {
"type": "git",
"url": "https://github.com/aws/aws-sdk-php.git",
- "reference": "5867f04e0e3959085328d853a743ffc5c8e8ae0b"
+ "reference": "85207a1f342443f40711ac8fe246120821370f11"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/5867f04e0e3959085328d853a743ffc5c8e8ae0b",
- "reference": "5867f04e0e3959085328d853a743ffc5c8e8ae0b",
+ "url": "https://api.github.com/repos/aws/aws-sdk-php/zipball/85207a1f342443f40711ac8fe246120821370f11",
+ "reference": "85207a1f342443f40711ac8fe246120821370f11",
"shasum": ""
},
"require": {
@@ -1474,9 +1474,9 @@
"support": {
"forum": "https://forums.aws.amazon.com/forum.jspa?forumID=80",
"issues": "https://github.com/aws/aws-sdk-php/issues",
- "source": "https://github.com/aws/aws-sdk-php/tree/3.314.0"
+ "source": "https://github.com/aws/aws-sdk-php/tree/3.314.1"
},
- "time": "2024-06-12T18:10:03+00:00"
+ "time": "2024-06-13T18:07:00+00:00"
},
{
"name": "bacon/bacon-qr-code",
@@ -18810,28 +18810,28 @@
},
{
"name": "react/dns",
- "version": "v1.12.0",
+ "version": "v1.13.0",
"source": {
"type": "git",
"url": "https://github.com/reactphp/dns.git",
- "reference": "c134600642fa615b46b41237ef243daa65bb64ec"
+ "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/reactphp/dns/zipball/c134600642fa615b46b41237ef243daa65bb64ec",
- "reference": "c134600642fa615b46b41237ef243daa65bb64ec",
+ "url": "https://api.github.com/repos/reactphp/dns/zipball/eb8ae001b5a455665c89c1df97f6fb682f8fb0f5",
+ "reference": "eb8ae001b5a455665c89c1df97f6fb682f8fb0f5",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"react/cache": "^1.0 || ^0.6 || ^0.5",
"react/event-loop": "^1.2",
- "react/promise": "^3.0 || ^2.7 || ^1.2.1"
+ "react/promise": "^3.2 || ^2.7 || ^1.2.1"
},
"require-dev": {
"phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36",
- "react/async": "^4 || ^3 || ^2",
- "react/promise-timer": "^1.9"
+ "react/async": "^4.3 || ^3 || ^2",
+ "react/promise-timer": "^1.11"
},
"type": "library",
"autoload": {
@@ -18874,7 +18874,7 @@
],
"support": {
"issues": "https://github.com/reactphp/dns/issues",
- "source": "https://github.com/reactphp/dns/tree/v1.12.0"
+ "source": "https://github.com/reactphp/dns/tree/v1.13.0"
},
"funding": [
{
@@ -18882,7 +18882,7 @@
"type": "open_collective"
}
],
- "time": "2023-11-29T12:41:06+00:00"
+ "time": "2024-06-13T14:18:03+00:00"
},
{
"name": "react/event-loop",
diff --git a/phpstan.neon b/phpstan.neon
index b2c5b484fb23..58283d970ab0 100644
--- a/phpstan.neon
+++ b/phpstan.neon
@@ -7,15 +7,16 @@ parameters:
paths:
- app
excludePaths:
- - 'vendor/*'
- - 'resources/*/*.php'
- - 'app/Jobs/Ninja/*'
- - 'app/Models/Presenters/*'
- - 'app/Console/Commands/*'
- - 'app/DataMapper/Analytics/*'
- - 'app/PaymentDrivers/Authorize/*'
- - 'app/PaymentDrivers/AuthorizePaymentDriver.php'
- - 'app/Utils/Traits/*'
+ analyseAndScan:
+ - 'vendor'
+ - 'resources'
+ - 'app/Jobs/Ninja/*'
+ - 'app/Models/Presenters/*'
+ - 'app/Console/Commands/*'
+ - 'app/DataMapper/Analytics/*'
+ - 'app/PaymentDrivers/Authorize/*'
+ - 'app/PaymentDrivers/AuthorizePaymentDriver.php'
+ - 'app/Utils/Traits/*'
universalObjectCratesClasses:
- App\DataMapper\Tax\RuleInterface
- App\DataMapper\FeesAndLimits
diff --git a/resources/views/portal/ninja2020/gateways/paypal/pay.blade.php b/resources/views/portal/ninja2020/gateways/paypal/pay.blade.php
index 4b3ebce7e95f..86eba7ccf830 100644
--- a/resources/views/portal/ninja2020/gateways/paypal/pay.blade.php
+++ b/resources/views/portal/ninja2020/gateways/paypal/pay.blade.php
@@ -77,7 +77,6 @@ inset: 6px;
@if(isset($merchantId))
-
+
@else
-
+
@endif