@@ -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,9 +335,9 @@ 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 */
340- public function url (array $ parameters = [], string $ host = null , bool $ secure = null ): string
340+ public function url (array $ parameters = [], ? string $ host = null , ? bool $ secure = null ): string
341341 {
342342 $ path = $ this ->path ($ parameters );
343343 $ host = $ host ? trim ($ host , '/ ' ) : null ;
@@ -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