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

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy