Skip to content

Commit 8b561d3

Browse files
committed
Declare properties in SOAP tests
In preparation for https://wiki.php.net/rfc/deprecate_dynamic_properties.
1 parent 6d572bc commit 8b561d3

File tree

73 files changed

+168
-372
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+168
-372
lines changed

ext/soap/tests/any.phpt

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ soap.wsdl_cache_enabled=0
88
--FILE--
99
<?php
1010
class SOAPComplexType {
11-
function __construct($s, $i, $f) {
12-
$this->varString = $s;
13-
$this->varInt = $i;
14-
$this->varFloat = $f;
15-
}
11+
function __construct(public $varString, public $varInt, public $varFloat) {}
1612
}
1713
$struct = new SOAPComplexType('arg',34,325.325);
1814

@@ -29,6 +25,8 @@ function echoAnyElement($x) {
2925
}
3026

3127
class TestSoapClient extends SoapClient {
28+
private $server;
29+
3230
function __construct($wsdl, $options) {
3331
parent::__construct($wsdl, $options);
3432
$this->server = new SoapServer($wsdl, $options);
@@ -63,10 +61,10 @@ object(stdClass)#5 (1) {
6361
array(1) {
6462
["SOAPComplexType"]=>
6563
object(SOAPComplexType)#7 (3) {
66-
["varInt"]=>
67-
int(34)
6864
["varString"]=>
6965
string(3) "arg"
66+
["varInt"]=>
67+
int(34)
7068
["varFloat"]=>
7169
float(325.325)
7270
}
@@ -80,10 +78,10 @@ object(stdClass)#8 (1) {
8078
array(1) {
8179
["SOAPComplexType"]=>
8280
object(SOAPComplexType)#10 (3) {
83-
["varInt"]=>
84-
int(34)
8581
["varString"]=>
8682
string(3) "arg"
83+
["varInt"]=>
84+
int(34)
8785
["varFloat"]=>
8886
float(325.325)
8987
}

ext/soap/tests/bugs/bug28969.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function test() {
1010
}
1111

1212
class LocalSoapClient extends SoapClient {
13+
private $server;
1314

1415
function __construct($wsdl, $options) {
1516
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug29839.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function EchoString($s) {
1212
}
1313

1414
class LocalSoapClient extends SoapClient {
15+
private $server;
1516

1617
function __construct($wsdl, $options) {
1718
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug29844.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class hello_world {
1414
}
1515

1616
class LocalSoapClient extends SoapClient {
17+
private $server;
1718

1819
function __construct($wsdl, $options) {
1920
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug30045.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ function foo($type, $num) {
1313
}
1414

1515
class LocalSoapClient extends SoapClient {
16+
private $server;
1617

1718
function __construct($wsdl, $options) {
1819
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug30106.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ function getContinentList() {
1313
}
1414

1515
class LocalSoapClient extends SoapClient {
16+
private $server;
17+
1618
function __construct($wsdl, $options=array()) {
1719
parent::__construct($wsdl, $options);
1820
$this->server = new SoapServer($wsdl, $options);

ext/soap/tests/bugs/bug30928.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ function test($x) {
1717
}
1818

1919
class LocalSoapClient extends SoapClient {
20+
private $server;
2021

2122
function __construct($wsdl, $options) {
2223
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug31695.phpt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ function Test($x) {
1111
}
1212

1313
class LocalSoapClient extends SoapClient {
14+
private $server;
15+
1416
function __construct($wsdl, $options=array()) {
1517
parent::__construct($wsdl, $options);
1618
$this->server = new SoapServer($wsdl, $options);
17-
$this->server->addFunction("Test");
19+
$this->server->addFunction("Test");
1820
}
1921

2022
function __doRequest($request, $location, $action, $version, $one_way = 0): ?string {

ext/soap/tests/bugs/bug32776.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function test($x) {
1515
}
1616

1717
class LocalSoapClient extends SoapClient {
18+
private $server;
1819

1920
function __construct($wsdl, $options) {
2021
parent::__construct($wsdl, $options);

ext/soap/tests/bugs/bug34453.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function EchoString($s) {
1212
}
1313

1414
class LocalSoapClient extends SoapClient {
15+
private $server;
1516

1617
function __construct($wsdl, $options) {
1718
parent::__construct($wsdl, $options);

0 commit comments

Comments
 (0)