Skip to content

Commit 7767662

Browse files
Fix PHPStan issues
1 parent ccda53c commit 7767662

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/Backup/Collector/Dropbox.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class Dropbox extends Remote implements Collector
2424
{
2525
/**
26-
* @var DropboxApi
26+
* @var DropboxApi\Dropbox
2727
*/
2828
protected $client;
2929

src/Backup/Sync/Dropbox.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Dropbox implements Simulator
4949
/**
5050
* Dropbox api client
5151
*
52-
* @var DropboxApi
52+
* @var DropboxApi\Dropbox
5353
*/
5454
protected $client;
5555

@@ -63,12 +63,12 @@ class Dropbox implements Simulator
6363
/**
6464
* @var string
6565
*/
66-
private mixed $appKey;
66+
private $appKey;
6767

6868
/**
6969
* @var string
7070
*/
71-
private mixed $appSecret;
71+
private $appSecret;
7272

7373
/**
7474
* (non-PHPDoc)

src/Log/Webhook.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ class Webhook implements Listener, Logger
106106
*/
107107
private bool $sendSimulating = false;
108108

109+
/**
110+
* @var bool
111+
*/
112+
private bool $isSimulation = false;
113+
109114
/**
110115
* Constructor will only set the start time to be able to log duration
111116
*/
@@ -164,6 +169,7 @@ public function setup(array $options)
164169
$this->template = Arr::getValue($options, 'template', '');
165170
$this->contentType = Arr::getValue($options, 'contentType', 'multipart/form-data');
166171
$this->timeout = Arr::getValue($options, 'timeout', '');
172+
$this->isSimulation = Arr::getValue($options, '__simulate__', false);
167173
}
168174

169175
/**

0 commit comments

Comments
 (0)