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:
Vitor Mattos 2025-12-02 14:44:11 -03:00
parent 4514ba9c1c
commit a6a47485c5
No known key found for this signature in database
GPG key ID: 6FECE2AD4809003A

View file

@ -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');