Skip to content

Commit

Permalink
Types idle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Jul 24, 2024
1 parent e90d0fc commit bfacf45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Router/CallableResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function getAttributeValue(Update $update, string $attributeName, Reflec
return $value;
}

throw new InvalidTypeAttributeValueException($attributeName, get_debug_type($value), $type === null ? 'null' : (string) $type);
throw new InvalidTypeAttributeValueException($attributeName, get_debug_type($value), (string) $type);
}

private function typeCheck(mixed $value, ReflectionType $type): bool
Expand Down

0 comments on commit bfacf45

Please sign in to comment.