Skip to content

Commit 61b6466

Browse files
committed
Moved translate inside string check, irrelevant outside.
1 parent b7b4491 commit 61b6466

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CallableResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ private function translateNotation($toResolve)
6060

6161
private function resolvePossibleSignature($toResolve, string $method, string $typeName): callable
6262
{
63-
$toResolve = $this->translateNotation($toResolve);
64-
6563
if (is_string($toResolve)) {
64+
$toResolve = $this->translateNotation($toResolve);
65+
6666
try {
6767
$callable = $this->callableResolver->resolve([$toResolve, $method]);
6868

0 commit comments

Comments
 (0)