Skip to content

Commit 7649fb8

Browse files
Fix $this calls to static ones when relevant
1 parent 82a5794 commit 7649fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MarkingStore/MethodMarkingStore.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private function getGetter(object $subject): callable
8888
$property = $this->property;
8989
$method = 'get'.ucfirst($property);
9090

91-
return match ($this->getters[$subject::class] ??= $this->getType($subject, $property, $method)) {
91+
return match ($this->getters[$subject::class] ??= self::getType($subject, $property, $method)) {
9292
MarkingStoreMethod::METHOD => $subject->{$method}(...),
9393
MarkingStoreMethod::PROPERTY => static fn () => $subject->{$property},
9494
};
@@ -99,7 +99,7 @@ private function getSetter(object $subject): callable
9999
$property = $this->property;
100100
$method = 'set'.ucfirst($property);
101101

102-
return match ($this->setters[$subject::class] ??= $this->getType($subject, $property, $method)) {
102+
return match ($this->setters[$subject::class] ??= self::getType($subject, $property, $method)) {
103103
MarkingStoreMethod::METHOD => $subject->{$method}(...),
104104
MarkingStoreMethod::PROPERTY => static fn ($marking) => $subject->{$property} = $marking,
105105
};

0 commit comments

Comments
 (0)