mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-18 05:20:45 +01:00
fix: add default values to required properties in IdDocs
Initialize fileId and fileType with default values to prevent 'must not be accessed before initialization' errors with typed properties in PHP 8.2. Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
4514ba9c1c
commit
a6a47485c5
1 changed files with 2 additions and 2 deletions
|
|
@ -23,10 +23,10 @@ use OCP\AppFramework\Db\Entity;
|
|||
* @method string getFileType()
|
||||
*/
|
||||
class IdDocs extends Entity {
|
||||
protected int $fileId;
|
||||
protected int $fileId = 0;
|
||||
protected ?int $signRequestId = null;
|
||||
protected ?string $userId = null;
|
||||
protected string $fileType;
|
||||
protected string $fileType = '';
|
||||
|
||||
public function __construct() {
|
||||
$this->addType('id', 'integer');
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue