Skip to content

Commit 75089b7

Browse files
committed
fix typo in InputQuery class: correct 'quailifier' to 'qualifier'
1 parent c9f24e3 commit 75089b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/InputQuery.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,9 @@ private function resolveParameter(ReflectionParameter $param, array $query): mix
127127
private function resolveFromDI(ReflectionParameter $param): mixed
128128
{
129129
$interface = $this->getInterface($param);
130-
$quailifier = $this->getQualifer($param);
130+
$qualifier = $this->getQualifier($param);
131131
try {
132-
return $this->injector->getInstance($interface, $quailifier);
132+
return $this->injector->getInstance($interface, $qualifier);
133133
} catch (Unbound $e) {
134134
// If the type is not bound, we need to handle it
135135
// If it's a scalar type, return default value
@@ -142,7 +142,7 @@ private function resolveFromDI(ReflectionParameter $param): mixed
142142
'Parameter "%s" of type "%s:%s" is not bound in the injector.',
143143
$param->getName(),
144144
$interface,
145-
$quailifier,
145+
$qualifier,
146146
), 0, $e);
147147
}
148148
}
@@ -161,7 +161,7 @@ private function getInterface(ReflectionParameter $param): string
161161
return $class;
162162
}
163163

164-
private function getQualifer(ReflectionParameter $param): string
164+
private function getQualifier(ReflectionParameter $param): string
165165
{
166166
$maybeAttrs = $param->getAttributes();
167167
foreach ($maybeAttrs as $maybeAttr) {
@@ -172,8 +172,8 @@ private function getQualifer(ReflectionParameter $param): string
172172
}
173173

174174
$maybeQualifier = (new ReflectionClass($attr))->getAttributes(Qualifier::class);
175-
$isQaulifier = ! empty($maybeQualifier);
176-
if ($isQaulifier) {
175+
$isQualifier = ! empty($maybeQualifier);
176+
if ($isQualifier) {
177177
// If the attribute is Qualifier, return its value
178178
return $attr::class;
179179
}

0 commit comments

Comments
 (0)