QuickForm: Make property $successUrl nullable and add phpDoc to setAction()

This commit is contained in:
Sukhwinder Dhillon 2023-08-14 12:41:22 +02:00
parent 2efe54de1f
commit 52732dc3c7

View file

@ -46,7 +46,7 @@ abstract class QuickForm extends QuickBaseForm
protected $request;
/**
* @var Url
* @var ?Url
*/
protected $successUrl;
@ -252,6 +252,10 @@ abstract class QuickForm extends QuickBaseForm
{
}
/**
* @param $action string|Url
* @return $this
*/
public function setAction($action)
{
if ($action instanceof Url) {