mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-07 02:44:04 +00:00
phpstan fixes
This commit is contained in:
parent
3c183e45d9
commit
f955b38e2b
12 changed files with 24 additions and 21 deletions
|
|
@ -56,7 +56,7 @@ trait TriggerSyncingEvents
|
|||
|
||||
public function getCentralResourceAndTenant(): array
|
||||
{
|
||||
/** @var static&Pivot $this */
|
||||
/** @var $this&Pivot $this */
|
||||
$parent = $this->pivotParent;
|
||||
|
||||
if ($parent instanceof Tenant) {
|
||||
|
|
@ -79,7 +79,7 @@ trait TriggerSyncingEvents
|
|||
*/
|
||||
protected function getResourceClass(): string
|
||||
{
|
||||
/** @var Pivot|MorphPivot|((Pivot|MorphPivot)&PivotWithRelation) $this */
|
||||
/** @var $this&(Pivot|MorphPivot|((Pivot|MorphPivot)&PivotWithRelation)) $this */
|
||||
if ($this instanceof PivotWithRelation) {
|
||||
return $this->getRelatedModel()::class;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue