Skip to content

Commit

Permalink
fix: add final constructor to base factory
Browse files Browse the repository at this point in the history
  • Loading branch information
Katalam committed May 13, 2024
1 parent d785b73 commit 0bd9ae6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Facades/Testing/RecordFactories/BaseFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,21 @@

namespace Katalam\OnOfficeAdapter\Facades\Testing\RecordFactories;

class BaseFactory
abstract class BaseFactory
{
public int $id = 0;

public string $type = '';

public array $elements = [];

/**
* Final to solve Unsafe usage of new static()
*/
final public function __construct()
{
}

public function id(int $id): self
{
$this->id = $id;
Expand Down

0 comments on commit 0bd9ae6

Please sign in to comment.