diff --git a/app/Utils/Traits/GeneratesCounter.php b/app/Utils/Traits/GeneratesCounter.php index fcd7d10e8aff..97810afd67e3 100644 --- a/app/Utils/Traits/GeneratesCounter.php +++ b/app/Utils/Traits/GeneratesCounter.php @@ -318,7 +318,7 @@ trait GeneratesCounter * * @return bool True if has shared counter, False otherwise. */ - public function hasSharedCounter(Client $client, string $type) : bool + public function hasSharedCounter(Client $client, string $type = 'quote') : bool { if($type == 'quote') return (bool) $client->getSetting('shared_invoice_quote_counter'); diff --git a/tests/Unit/GeneratesCounterTest.php b/tests/Unit/GeneratesCounterTest.php index 6fb5bbe8872c..ead294b9425b 100644 --- a/tests/Unit/GeneratesCounterTest.php +++ b/tests/Unit/GeneratesCounterTest.php @@ -108,7 +108,7 @@ class GeneratesCounterTest extends TestCase public function testHasSharedCounter() { - $this->assertFalse($this->hasSharedCounter($this->client)); + $this->assertFalse($this->hasSharedCounter($this->client,)); } public function testHasTrueSharedCounter()