Skip to content

Commit

Permalink
fix: avoid possible fatal errors, closes #2915
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Apr 16, 2024
1 parent e5a6ec4 commit 6a2d265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/Attachment/AttachmentAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ abstract class AttachmentAbstract
*
* @var int
*/
protected $id;
protected int $id;

/**
* The key to encrypt with.
Expand All @@ -54,7 +54,7 @@ abstract class AttachmentAbstract
/**
* Record ID.
*/
protected int $recordId;
protected ?int $recordId = null;

/**
* Record language.
Expand Down

0 comments on commit 6a2d265

Please sign in to comment.