mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 23:54:03 +00:00
fix phpstan errors
This commit is contained in:
parent
18a16e6a74
commit
4372e1bef2
20 changed files with 105 additions and 16 deletions
|
|
@ -5,15 +5,19 @@ declare(strict_types=1);
|
|||
namespace Stancl\Tenancy\Contracts;
|
||||
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
use \Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* @property-read Tenant $tenant
|
||||
*
|
||||
* @see \Stancl\Tenancy\Database\Models\Domain
|
||||
*
|
||||
* @mixin \Illuminate\Database\Eloquent\Model
|
||||
* @mixin Model
|
||||
*/
|
||||
interface Domain
|
||||
{
|
||||
/**
|
||||
* @return BelongsTo<Tenant&Model, Model>
|
||||
*/
|
||||
public function tenant(): BelongsTo;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue