Skip to content

Commit dd64928

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Accept null $location in SoapClient::__setLocation()
2 parents 8e7b476 + 788abb8 commit dd64928

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/soap/soap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2886,7 +2886,7 @@ PHP_METHOD(SoapClient, __setLocation)
28862886
zval *tmp;
28872887
zval *this_ptr = ZEND_THIS;
28882888

2889-
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s", &location, &location_len) == FAILURE) {
2889+
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|s!", &location, &location_len) == FAILURE) {
28902890
RETURN_THROWS();
28912891
}
28922892

ext/soap/soap.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ public function __getCookies() {}
108108
public function __setSoapHeaders($headers = null) {}
109109

110110
/** @return string|null */
111-
public function __setLocation(string $location = "") {}
111+
public function __setLocation(?string $location = null) {}
112112
}

0 commit comments

Comments
 (0)