Skip to content

Commit

Permalink
fix: variable must be initialized before it's accessed, closes #2915
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed May 18, 2024
1 parent e1dfa05 commit 847ee9d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions phpmyfaq/src/phpMyFAQ/Attachment/AttachmentAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@
*/
abstract class AttachmentAbstract
{
/**
* Attachment id.
*
* @var int
*/
protected int $id;
/** @var int|null Attachment id. */
protected ?int $id = null;

/**
* The key to encrypt with.
Expand Down Expand Up @@ -321,8 +317,6 @@ protected function readMimeType(): string
/**
* Generate hash based on current conditions.
*
* @return string
*
* NOTE The way a file is saved in the filesystem
* is based on md5 hash. If the file is unencrypted,
* it's md5 hash is used directly, otherwise a
Expand Down

0 comments on commit 847ee9d

Please sign in to comment.