From 6e06e7d1f25286e72390fb1f22687d2634d04f67 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 7 Nov 2021 20:31:03 +1100 Subject: [PATCH] Minor fix for typed property --- app/PaymentDrivers/BaseDriver.php | 2 +- tests/Feature/InvitationTest.php | 10 ++-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/app/PaymentDrivers/BaseDriver.php b/app/PaymentDrivers/BaseDriver.php index cfdd0151acfd..0de59f60f565 100644 --- a/app/PaymentDrivers/BaseDriver.php +++ b/app/PaymentDrivers/BaseDriver.php @@ -71,7 +71,7 @@ class BaseDriver extends AbstractPaymentDriver public $payment_method; /* PaymentHash */ - public ?PaymentHash $payment_hash; + public $payment_hash; /* Array of payment methods */ public static $methods = []; diff --git a/tests/Feature/InvitationTest.php b/tests/Feature/InvitationTest.php index ccf4d5ea68bd..12dc8ff9d806 100644 --- a/tests/Feature/InvitationTest.php +++ b/tests/Feature/InvitationTest.php @@ -33,18 +33,12 @@ use Tests\TestCase; class InvitationTest extends TestCase { use MakesHash; - //use DatabaseTransactions; - //use RefreshDatabase; + use DatabaseTransactions; + // use RefreshDatabase; public function setUp() :void { parent::setUp(); - - Session::start(); - - $this->faker = \Faker\Factory::create(); - - Model::reguard(); } public function testInvoiceCreationAfterInvoiceMarkedSent()