Skip to content

Commit

Permalink
Fixed accessing types property before initialization
Browse files Browse the repository at this point in the history
in InvoiceGenerator

remp/crm#3142
  • Loading branch information
zoldia committed Apr 16, 2024
1 parent e2ffb6f commit 96f691e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Models/Generator/InvoiceGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class InvoiceGenerator
{
use RedisClientTrait;

private string $templateFile;
private ?string $templateFile = null;

private array $templateParams = [];

private string $tempDir;
private ?string $tempDir = null;

public function __construct(
private readonly InvoicesRepository $invoicesRepository,
Expand Down

0 comments on commit 96f691e

Please sign in to comment.