Merge branch '4.2' into 4.3
* 4.2: [DomCrawler] Fix type error with null Form::$currentUri
This commit is contained in:
commit
2a93351bea
@ -44,7 +44,7 @@ class Form extends Link implements \ArrayAccess
|
||||
*
|
||||
* @throws \LogicException if the node is not a button inside a form tag
|
||||
*/
|
||||
public function __construct(\DOMElement $node, string $currentUri, string $method = null, string $baseHref = null)
|
||||
public function __construct(\DOMElement $node, string $currentUri = null, string $method = null, string $baseHref = null)
|
||||
{
|
||||
parent::__construct($node, $currentUri, $method);
|
||||
$this->baseHref = $baseHref;
|
||||
|
@ -1042,6 +1042,7 @@ HTML;
|
||||
['/basepath', '/registration', 'http://domain.com/registration', 'http://domain.com/registration', '<base> tag does work with a path and form action'],
|
||||
['/basepath', '', 'http://domain.com/registration', 'http://domain.com/registration', '<base> tag does work with a path and empty form action'],
|
||||
['http://base.com/', '/registration', 'http://base.com/registration', 'http://domain.com/registration', '<base> tag does work with a URL and form action'],
|
||||
['http://base.com/', 'http://base.com/registration', 'http://base.com/registration', null, '<base> tag does work with a URL and form action'],
|
||||
['http://base.com', '', 'http://domain.com/path/form', 'http://domain.com/path/form', '<base> tag does work with a URL and an empty form action'],
|
||||
['http://base.com/path', '/registration', 'http://base.com/registration', 'http://domain.com/path/form', '<base> tag does work with a URL and form action'],
|
||||
];
|
||||
|
Reference in New Issue
Block a user