Skip to content

Commit 5d624d4

Browse files
committed
Fix psalm
1 parent e822afb commit 5d624d4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Route.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ public function match(ServerRequestInterface $request): bool
297297
* @param array $parameters parameter-value set.
298298
* @return string URL path generated.
299299
* @throws InvalidRouteParameterException if the value does not match its regexp or the required parameter is null.
300-
* @psalm-suppress MixedAssignment
300+
* @psalm-suppress MixedAssignment, RiskyTruthyFalsyComparison
301301
*/
302302
public function path(array $parameters = []): string
303303
{
@@ -335,7 +335,7 @@ public function path(array $parameters = []): string
335335
* @param bool|null $secure if `true`, then `https`. If `false`, then `http`. If `null`, then without the protocol.
336336
* @return string URL generated.
337337
* @throws InvalidRouteParameterException If the host or the parameter value does not match its regexp.
338-
* @psalm-suppress PossiblyNullArgument
338+
* @psalm-suppress PossiblyNullArgument, RiskyTruthyFalsyComparison
339339
*/
340340
public function url(array $parameters = [], ?string $host = null, ?bool $secure = null): string
341341
{
@@ -435,6 +435,7 @@ private function normalizeParameter($value, string $name, string $pattern, bool
435435
*
436436
* @param string $host
437437
* @return bool
438+
* @psalm-suppress RiskyTruthyFalsyComparison
438439
*/
439440
private function isMatchedHost(string $host): bool
440441
{

0 commit comments

Comments
 (0)