mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Upgrade spectre to v4
This commit is contained in:
@@ -56,7 +56,7 @@ class Account extends SpectreObject
|
||||
*/
|
||||
public function __construct(array $data)
|
||||
{
|
||||
$this->id = $data['id'];
|
||||
$this->id = (int)$data['id'];
|
||||
$this->loginId = $data['login_id'];
|
||||
$this->currencyCode = $data['currency_code'];
|
||||
$this->balance = $data['balance'];
|
||||
|
@@ -58,8 +58,6 @@ class Attempt extends SpectreObject
|
||||
private $failErrorClass;
|
||||
/** @var string */
|
||||
private $failMessage;
|
||||
/** @var string */
|
||||
private $fetchType;
|
||||
/** @var bool */
|
||||
private $finished;
|
||||
/** @var bool */
|
||||
@@ -90,6 +88,8 @@ class Attempt extends SpectreObject
|
||||
private $updatedAt;
|
||||
/** @var string */
|
||||
private $userAgent; // undocumented
|
||||
/** @var array */
|
||||
private $fetchScopes = [];
|
||||
|
||||
/**
|
||||
* Attempt constructor.
|
||||
@@ -114,7 +114,7 @@ class Attempt extends SpectreObject
|
||||
$this->failAt = new Carbon($data['fail_at']);
|
||||
$this->failErrorClass = $data['fail_error_class'];
|
||||
$this->failMessage = $data['fail_message'];
|
||||
$this->fetchType = $data['fetch_type'];
|
||||
$this->fetchScopes = $data['fetch_scopes'];
|
||||
$this->finished = $data['finished'];
|
||||
$this->finishedRecent = $data['finished_recent'];
|
||||
$this->fromDate = new Carbon($data['from_date']);
|
||||
@@ -185,7 +185,7 @@ class Attempt extends SpectreObject
|
||||
'fail_at' => $this->failAt->toIso8601String(),
|
||||
'fail_error_class' => $this->failErrorClass,
|
||||
'fail_message' => $this->failMessage,
|
||||
'fetch_type' => $this->fetchType,
|
||||
'fetch_scopes' => $this->fetchScopes,
|
||||
'finished' => $this->finished,
|
||||
'finished_recent' => $this->finishedRecent,
|
||||
'from_date' => $this->fromDate->toIso8601String(),
|
||||
|
@@ -83,7 +83,7 @@ class Login extends SpectreObject
|
||||
$this->customerId = $data['customer_id'];
|
||||
$this->dailyRefresh = $data['daily_refresh'];
|
||||
$this->holderInfo = new Holder($data['holder_info']);
|
||||
$this->id = $data['id'];
|
||||
$this->id = (int)$data['id'];
|
||||
$this->lastAttempt = new Attempt($data['last_attempt']);
|
||||
$this->lastSuccessAt = new Carbon($data['last_success_at']);
|
||||
$this->nextRefreshPossibleAt = new Carbon($data['next_refresh_possible_at']);
|
||||
|
@@ -64,7 +64,7 @@ class Transaction extends SpectreObject
|
||||
*/
|
||||
public function __construct(array $data)
|
||||
{
|
||||
$this->id = $data['id'];
|
||||
$this->id = (int)$data['id'];
|
||||
$this->mode = $data['mode'];
|
||||
$this->status = $data['status'];
|
||||
$this->madeOn = new Carbon($data['made_on']);
|
||||
|
Reference in New Issue
Block a user