1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 17:44:04 +00:00

Fix Tenant typehint in jobs

This commit is contained in:
Samuel Štancl 2020-07-10 21:01:56 +02:00
parent 4b9b2648d5
commit 8734f74ddb
2 changed files with 4 additions and 5 deletions

View file

@ -10,7 +10,6 @@ use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Stancl\Tenancy\Contracts\Tenant;
use Stancl\Tenancy\Contracts\TenantWithDatabase;
use Stancl\Tenancy\Database\DatabaseManager;
use Stancl\Tenancy\Events\CreatingDatabase;
@ -23,7 +22,7 @@ class CreateDatabase implements ShouldQueue
/** @var TenantWithDatabase|Model */
protected $tenant;
public function __construct(Tenant $tenant)
public function __construct(TenantWithDatabase $tenant)
{
$this->tenant = $tenant;
}

View file

@ -9,7 +9,7 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Stancl\Tenancy\Database\Models\Tenant;
use Stancl\Tenancy\Contracts\TenantWithDatabase;
use Stancl\Tenancy\Events\DatabaseDeleted;
use Stancl\Tenancy\Events\DeletingDatabase;
@ -17,10 +17,10 @@ class DeleteDatabase implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/** @var Tenant */
/** @var TenantWithDatabase */
protected $tenant;
public function __construct(Tenant $tenant)
public function __construct(TenantWithDatabase $tenant)
{
$this->tenant = $tenant;
}