Skip to content

Commit

Permalink
Fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
devanych committed Dec 29, 2024
1 parent e822afb commit 5d624d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function match(ServerRequestInterface $request): bool
* @param array $parameters parameter-value set.
* @return string URL path generated.
* @throws InvalidRouteParameterException if the value does not match its regexp or the required parameter is null.
* @psalm-suppress MixedAssignment
* @psalm-suppress MixedAssignment, RiskyTruthyFalsyComparison
*/
public function path(array $parameters = []): string
{
Expand Down Expand Up @@ -335,7 +335,7 @@ public function path(array $parameters = []): string
* @param bool|null $secure if `true`, then `https`. If `false`, then `http`. If `null`, then without the protocol.
* @return string URL generated.
* @throws InvalidRouteParameterException If the host or the parameter value does not match its regexp.
* @psalm-suppress PossiblyNullArgument
* @psalm-suppress PossiblyNullArgument, RiskyTruthyFalsyComparison
*/
public function url(array $parameters = [], ?string $host = null, ?bool $secure = null): string
{
Expand Down Expand Up @@ -435,6 +435,7 @@ private function normalizeParameter($value, string $name, string $pattern, bool
*
* @param string $host
* @return bool
* @psalm-suppress RiskyTruthyFalsyComparison
*/
private function isMatchedHost(string $host): bool
{
Expand Down

0 comments on commit 5d624d4

Please sign in to comment.