Issue Bug Closed

#88848Cannot set null as targetPage in UriBuilder

Robert Vock 07/26/19, 10:30 updated 07/27/19, 09:09

Description

  1. hardened the UriBuilder of Extbase. Since then it is not possible to set null as targetPageUid, even though the comment for the property says null is allowed:
    UriBuilder.php#L102
/**
 * @var int|null
 */
protected $targetPageUid;

UriBuilder.php#L426

public function setTargetPageUid(int $targetPageUid): UriBuilder
{
    $this->targetPageUid = $targetPageUid;
    return $this;
}

Other methods which do not allow null:
- setRequest
- setArgumentPrefix

The argument type hint should be adjusted and allow null: ?int, ?Request and ?string

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.