From 77676621506c5db10cb258d10541460a9033628d Mon Sep 17 00:00:00 2001 From: Sebastian Feldmann Date: Sun, 17 Nov 2024 13:33:11 +0100 Subject: [PATCH] Fix PHPStan issues --- src/Backup/Collector/Dropbox.php | 2 +- src/Backup/Sync/Dropbox.php | 6 +++--- src/Log/Webhook.php | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/Backup/Collector/Dropbox.php b/src/Backup/Collector/Dropbox.php index c0f98fb..fd47a76 100644 --- a/src/Backup/Collector/Dropbox.php +++ b/src/Backup/Collector/Dropbox.php @@ -23,7 +23,7 @@ class Dropbox extends Remote implements Collector { /** - * @var DropboxApi + * @var DropboxApi\Dropbox */ protected $client; diff --git a/src/Backup/Sync/Dropbox.php b/src/Backup/Sync/Dropbox.php index 6af061a..7b38960 100644 --- a/src/Backup/Sync/Dropbox.php +++ b/src/Backup/Sync/Dropbox.php @@ -49,7 +49,7 @@ class Dropbox implements Simulator /** * Dropbox api client * - * @var DropboxApi + * @var DropboxApi\Dropbox */ protected $client; @@ -63,12 +63,12 @@ class Dropbox implements Simulator /** * @var string */ - private mixed $appKey; + private $appKey; /** * @var string */ - private mixed $appSecret; + private $appSecret; /** * (non-PHPDoc) diff --git a/src/Log/Webhook.php b/src/Log/Webhook.php index 22a37d8..cb9215e 100644 --- a/src/Log/Webhook.php +++ b/src/Log/Webhook.php @@ -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 */ @@ -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); } /**