Skip to content

Commit 4b2d78d

Browse files
committed
Fix a couple rector issues
1 parent b277c2c commit 4b2d78d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/elements/deletionblockers/RelationDeletionBlocker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function isActive(): bool
6161
public function getSummary(): string
6262
{
6363
/** @var class-string<ElementInterface> $targetElementType */
64-
$targetElementType = get_class($this->elements->first());
64+
$targetElementType = $this->elements->first()::class;
6565

6666
return Craft::t('app', 'The {numTargets, plural, =1{{targetTypeSingular} is} other{{targetTypePlural} are}} related by {numRelations, number} other {numRelations, plural, =1{{sourceTypeSingular}} other{{sourceTypePlural}}}.', [
6767
'sourceTypeSingular' => $this->sourceElementType::lowerDisplayName(),
@@ -92,7 +92,7 @@ public function getDetails(): ?string
9292
public function getActions(): array
9393
{
9494
/** @var class-string<ElementInterface> $targetElementType */
95-
$targetElementType = get_class($this->elements->first());
95+
$targetElementType = $this->elements->first()::class;
9696
$numTargets = $this->elements->count();
9797

9898
return [

0 commit comments

Comments
 (0)