Skip to content

Commit

Permalink
Fix PHPStan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Nov 17, 2024
1 parent ccda53c commit 7767662
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Backup/Collector/Dropbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
class Dropbox extends Remote implements Collector
{
/**
* @var DropboxApi
* @var DropboxApi\Dropbox
*/
protected $client;

Expand Down
6 changes: 3 additions & 3 deletions src/Backup/Sync/Dropbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Dropbox implements Simulator
/**
* Dropbox api client
*
* @var DropboxApi
* @var DropboxApi\Dropbox
*/
protected $client;

Expand All @@ -63,12 +63,12 @@ class Dropbox implements Simulator
/**
* @var string
*/
private mixed $appKey;
private $appKey;

/**
* @var string
*/
private mixed $appSecret;
private $appSecret;

/**
* (non-PHPDoc)
Expand Down
6 changes: 6 additions & 0 deletions src/Log/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ class Webhook implements Listener, Logger
*/
private bool $sendSimulating = false;

/**
* @var bool
*/
private bool $isSimulation = false;

/**
* Constructor will only set the start time to be able to log duration
*/
Expand Down Expand Up @@ -164,6 +169,7 @@ public function setup(array $options)
$this->template = Arr::getValue($options, 'template', '');
$this->contentType = Arr::getValue($options, 'contentType', 'multipart/form-data');
$this->timeout = Arr::getValue($options, 'timeout', '');
$this->isSimulation = Arr::getValue($options, '__simulate__', false);
}

/**
Expand Down

0 comments on commit 7767662

Please sign in to comment.