1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-07 02:44:04 +00:00

phpstan fixes

This commit is contained in:
Samuel Štancl 2025-01-05 15:50:30 +01:00
parent 3c183e45d9
commit f955b38e2b
12 changed files with 24 additions and 21 deletions

View file

@ -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;
}