#88848Cannot set null as targetPage in UriBuilder
Description
- 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;
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.