diff --git a/app/Jobs/Util/VersionCheck.php b/app/Jobs/Util/VersionCheck.php index 6d40a3e7172f..fe4cf701607b 100644 --- a/app/Jobs/Util/VersionCheck.php +++ b/app/Jobs/Util/VersionCheck.php @@ -38,13 +38,13 @@ class VersionCheck implements ShouldQueue $version_file = trim(@file_get_contents(config('ninja.version_url'))); if (Ninja::isSelfHost() && $version_file) { - /** @var \App\Models\Account $account **/ - Account::whereNotNull('id')->update(['latest_version' => $version_file]); + Account::query()->whereNotNull('id')->update(['latest_version' => $version_file]); } if (Ninja::isSelfHost()) { nlog("latest version = {$version_file}"); + /** @var \App\Models\Account $account **/ $account = Account::first(); if (! $account) { diff --git a/app/Jobs/Util/WebhookSingle.php b/app/Jobs/Util/WebhookSingle.php index 26f79e992250..c30fef90e5ca 100644 --- a/app/Jobs/Util/WebhookSingle.php +++ b/app/Jobs/Util/WebhookSingle.php @@ -71,13 +71,12 @@ class WebhookSingle implements ShouldQueue /** * Execute the job. * - * @return bool */ public function handle() { MultiDB::setDb($this->db); - $subscription = Webhook::with('company')->find($this->subscription_id); + $subscription = Webhook::query()->with('company')->find($this->subscription_id); if ($subscription) { // nlog("firing event ID {$subscription->event_id} company_id {$subscription->company_id}"); diff --git a/app/Jobs/Vendor/CreatePurchaseOrderPdf.php b/app/Jobs/Vendor/CreatePurchaseOrderPdf.php index 607f78d0b97a..fe6029aa2042 100644 --- a/app/Jobs/Vendor/CreatePurchaseOrderPdf.php +++ b/app/Jobs/Vendor/CreatePurchaseOrderPdf.php @@ -124,6 +124,7 @@ class CreatePurchaseOrderPdf implements ShouldQueue /* Catch all in case migration doesn't pass back a valid design */ if (!$design) { + /** @var \App\Models\Design $design */ $design = Design::find(2); }